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

This commit is contained in:
mustang
2016-12-07 16:40:18 -08:00
committed by Dan Abramov
parent 9fd528c5b7
commit adbc1a206d

View File

@@ -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;