Commit adbc1a20 authored by mustang's avatar mustang Committed by Dan Abramov
Browse files

Instruct Jest to load native components from RNW instead of RN (#1201)

parent 9fd528c5
No related merge requests found
Showing with 3 additions and 0 deletions
+3 -0
...@@ -38,6 +38,9 @@ module.exports = (resolve, rootDir, isEjecting) => { ...@@ -38,6 +38,9 @@ module.exports = (resolve, rootDir, isEjecting) => {
transformIgnorePatterns: [ transformIgnorePatterns: [
'[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$' '[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$'
], ],
moduleNameMapper: {
'^react-native$': 'react-native-web'
}
}; };
if (rootDir) { if (rootDir) {
config.rootDir = rootDir; config.rootDir = rootDir;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment