Jest: remove haste config (#27257)

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 https://github.com/facebook/react/commit/3f5b8c214f64f72aeb1ec0e0aae3d2185b3362a6.
This commit is contained in:
kassens
2023-08-22 14:18:12 +00:00
parent 55c52b1be3
commit e685f4e02b
7 changed files with 9 additions and 9 deletions
@@ -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.
@@ -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 = {
@@ -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__;
@@ -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 = {
@@ -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__;
@@ -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,
@@ -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";
@@ -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 (
@@ -1 +1 @@
7d1c3c15892d8c31c7ca4661f601c41d8541fa8c
3f5b8c214f64f72aeb1ec0e0aae3d2185b3362a6