Skip to content

Commit 2a4fca6

Browse files
Enoah NetzachEnoahNetzach
Enoah Netzach
authored andcommitted
Use NODE_PATH env var in jest config
1 parent 99fdfd3 commit 2a4fca6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-scripts/utils/createJestConfig.js

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
3838
transformIgnorePatterns: [
3939
'[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$'
4040
],
41+
moduleDirectories: ['node_modules', process.env.NODE_PATH].filter(dir => dir),
4142
moduleNameMapper: {
4243
'^react-native$': 'react-native-web'
4344
}

0 commit comments

Comments
 (0)