Skip to content

Commit

Permalink
Instruct Jest to load native components from RNW instead of RN (#1201)
Browse files Browse the repository at this point in the history
  • Loading branch information
remon-nashid authored and gaearon committed Dec 8, 2016
1 parent 9fd528c commit adbc1a2
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 adbc1a2

Please sign in to comment.