mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-01 09:01:04 +08:00
Instruct Jest to load native components from RNW instead of RN (#1201)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user