Skip to content

Commit

Permalink
Don't transpile async/await in tests (#27029)
Browse files Browse the repository at this point in the history
Modern runtimes support native async/await, as does the version of Node
we use for our tests. To match how most of our users run React, this
disables the transpilation of async/await in our test suite.

DiffTrain build for commit 47385f8.
  • Loading branch information
acdlite committed Jun 30, 2023
1 parent f2efeae commit d27c5ca
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23903,7 +23903,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-canary-1fdacbefd-20230630";
var ReactVersion = "18.3.0-canary-47385f8fa-20230630";

// Might add PROFILE later.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8616,7 +8616,7 @@ var devToolsConfig$jscomp$inline_1031 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-1fdacbefd-20230630",
version: "18.3.0-canary-47385f8fa-20230630",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1230 = {
Expand Down Expand Up @@ -8647,7 +8647,7 @@ var internals$jscomp$inline_1230 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-1fdacbefd-20230630"
reconcilerVersion: "18.3.0-canary-47385f8fa-20230630"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1231 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9042,7 +9042,7 @@ var devToolsConfig$jscomp$inline_1073 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-1fdacbefd-20230630",
version: "18.3.0-canary-47385f8fa-20230630",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1271 = {
Expand Down Expand Up @@ -9073,7 +9073,7 @@ var internals$jscomp$inline_1271 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-1fdacbefd-20230630"
reconcilerVersion: "18.3.0-canary-47385f8fa-20230630"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1272 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (
}
"use strict";

var ReactVersion = "18.3.0-canary-1fdacbefd-20230630";
var ReactVersion = "18.3.0-canary-47385f8fa-20230630";

// ATTENTION
// When adding new symbols to this file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -623,4 +623,4 @@ exports.useSyncExternalStore = function (
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-canary-1fdacbefd-20230630";
exports.version = "18.3.0-canary-47385f8fa-20230630";
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ exports.useSyncExternalStore = function (
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-canary-1fdacbefd-20230630";
exports.version = "18.3.0-canary-47385f8fa-20230630";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1fdacbefd641d0ac1c97b159760eb03768771049
47385f8fa448e52326f08d0afa357339fac6f86e

0 comments on commit d27c5ca

Please sign in to comment.