Skip to content

Commit

Permalink
Jest: remove haste config (#27257)
Browse files Browse the repository at this point in the history
Since we're not using haste at all, we can just remove the config to
disable haste instead of enabling, just to inject an implementation that
blocks any haste modules from being recognized.

Test Plan:
Creating a module and required it to get the expected error that the
module doesn't exist.

DiffTrain build for commit 3f5b8c2.
  • Loading branch information
kassens committed Aug 22, 2023
1 parent 55c52b1 commit e685f4e
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 @@ -23966,7 +23966,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-canary-7d1c3c158-20230821";
var ReactVersion = "18.3.0-canary-3f5b8c214-20230822";

// Might add PROFILE later.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8615,7 +8615,7 @@ var devToolsConfig$jscomp$inline_1029 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-7d1c3c158-20230821",
version: "18.3.0-canary-3f5b8c214-20230822",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1228 = {
Expand Down Expand Up @@ -8646,7 +8646,7 @@ var internals$jscomp$inline_1228 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-7d1c3c158-20230821"
reconcilerVersion: "18.3.0-canary-3f5b8c214-20230822"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1229 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9041,7 +9041,7 @@ var devToolsConfig$jscomp$inline_1071 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-7d1c3c158-20230821",
version: "18.3.0-canary-3f5b8c214-20230822",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1269 = {
Expand Down Expand Up @@ -9072,7 +9072,7 @@ var internals$jscomp$inline_1269 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-7d1c3c158-20230821"
reconcilerVersion: "18.3.0-canary-3f5b8c214-20230822"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1270 = __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-7d1c3c158-20230821";
var ReactVersion = "18.3.0-canary-3f5b8c214-20230822";

// ATTENTION
// When adding new symbols to this file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,4 +616,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-7d1c3c158-20230821";
exports.version = "18.3.0-canary-3f5b8c214-20230822";
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-7d1c3c158-20230821";
exports.version = "18.3.0-canary-3f5b8c214-20230822";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7d1c3c15892d8c31c7ca4661f601c41d8541fa8c
3f5b8c214f64f72aeb1ec0e0aae3d2185b3362a6

0 comments on commit e685f4e

Please sign in to comment.