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.
  • Loading branch information
kassens committed Aug 22, 2023
1 parent 7d1c3c1 commit 3f5b8c2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
3 changes: 0 additions & 3 deletions scripts/jest/config.base.js
Expand Up @@ -2,9 +2,6 @@

module.exports = {
globalSetup: require.resolve('./setupGlobal.js'),
haste: {
hasteImplModulePath: require.resolve('./noHaste.js'),
},
modulePathIgnorePatterns: [
'<rootDir>/scripts/rollup/shims/',
'<rootDir>/scripts/bench/',
Expand Down
8 changes: 0 additions & 8 deletions scripts/jest/noHaste.js

This file was deleted.

0 comments on commit 3f5b8c2

Please sign in to comment.