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 alexdriaguine committed Jan 23, 2017
1 parent e615a82 commit 443c0c0
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 @@ -38,6 +38,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 443c0c0

Please sign in to comment.