Skip to content

Commit

Permalink
Use NODE_PATH env var in jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
Enoah Netzach authored and EnoahNetzach committed Jan 26, 2017
1 parent da321b2 commit d57ebf2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-scripts/utils/createJestConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
transformIgnorePatterns: [
'[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$'
],
moduleDirectories: ['node_modules', process.env.NODE_PATH].filter(dir => dir),
moduleNameMapper: {
'^react-native$': 'react-native-web'
}
Expand Down

0 comments on commit d57ebf2

Please sign in to comment.