@samitouri / QOS-React-1 / commits / 3f5b8c214f

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.

Jan Kassens committed Aug 22, 2023 at 10:12 UTC 3f5b8c214f64f72aeb1ec0e0aae3d2185b3362a6
2 files changed -11
scripts/jest/config.base.js
-3
@@ -2,9 +2,6 @@
2
3 module.exports = {
4 globalSetup: require.resolve('./setupGlobal.js'),
5 - haste: {
6 - hasteImplModulePath: require.resolve('./noHaste.js'),
7 - },
5 modulePathIgnorePatterns: [
6 '<rootDir>/scripts/rollup/shims/',
7 '<rootDir>/scripts/bench/',
scripts/jest/noHaste.js deleted
-8
@@ -1,8 +0,0 @@
1 -'use strict';
2 -
3 -module.exports = {
4 - getHasteName() {
5 - // We never want Haste.
6 - return null;
7 - },
8 -};