Skip to content

Commit 3f5b8c2

Browse files
authored
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.
1 parent 7d1c3c1 commit 3f5b8c2

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

scripts/jest/config.base.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
module.exports = {
44
globalSetup: require.resolve('./setupGlobal.js'),
5-
haste: {
6-
hasteImplModulePath: require.resolve('./noHaste.js'),
7-
},
85
modulePathIgnorePatterns: [
96
'<rootDir>/scripts/rollup/shims/',
107
'<rootDir>/scripts/bench/',

scripts/jest/noHaste.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)