We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c78b9d commit b335beeCopy full SHA for b335bee
scripts/test.js
@@ -12,6 +12,10 @@ const pathsConfig = require(pathsConfigPath);
12
// extend paths with overrides
13
paths = Object.assign({}, paths, overrides.paths(pathsConfig, process.env.NODE_ENV));
14
15
+// override paths in memory
16
+require.cache[require.resolve(pathsConfigPath)].exports =
17
+ paths;
18
+
19
// hide overrides in package.json for CRA's original createJestConfig
20
const packageJson = require(paths.appPackageJson);
21
const jestOverrides = packageJson.jest;
0 commit comments