Skip to content

Commit

Permalink
Instruct Jest to load native components from RNW instead of RN (faceb…
Browse files Browse the repository at this point in the history
  • Loading branch information
remon-nashid authored and randycoulman committed May 8, 2017
1 parent 9d5bc4c commit cf698e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/react-scripts/utils/createJestConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ module.exports = (resolve, rootDir, isEjecting) => {
transformIgnorePatterns: [
'[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$'
],
moduleNameMapper: {
'^react-native$': 'react-native-web'
}
};
if (rootDir) {
config.rootDir = rootDir;
Expand Down

0 comments on commit cf698e5

Please sign in to comment.