mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 09:35:48 +00:00
97d90a1d71
Summary: Fixes breakage on https://circleci.com/gh/facebook/react-native/12763 after the upgrade of React Explain the **motivation** for making this change. What existing problem does the pull request solve? Jest preset has been upgraded so that requiring `React` capitalized can be possible **Test plan (required)** Couldn't reproduce it locally, we need to see if Circle passes. Closes https://github.com/facebook/react-native/pull/10749 Differential Revision: D4132150 Pulled By: bestander fbshipit-source-id: e41fb95b6677113fc6a3bf8bbce9247f59aa81dd
26 lines
738 B
JSON
26 lines
738 B
JSON
{
|
|
"haste": {
|
|
"defaultPlatform": "ios",
|
|
"platforms": ["android", "ios"],
|
|
"providesModuleNodeModules": [
|
|
"react-native"
|
|
]
|
|
},
|
|
"moduleNameMapper": {
|
|
"^image![a-zA-Z0-9$_-]+$": "GlobalImageStub",
|
|
"^[./a-zA-Z0-9$_-]+\\.(bmp|gif|jpg|jpeg|png|psd|svg|webp)$": "RelativeImageStub",
|
|
"^React$": "<rootDir>node_modules/react"
|
|
},
|
|
"modulePathIgnorePatterns": [
|
|
"<rootDir>/node_modules/react-native/Libraries/react-native/",
|
|
"<rootDir>/node_modules/react-native/packager/"
|
|
],
|
|
"preprocessorIgnorePatterns": [
|
|
"node_modules/(?!(jest-)?react-native|react-clone-referenced-element)"
|
|
],
|
|
"setupFiles": [
|
|
"<rootDir>/node_modules/react-native/jest/setup.js"
|
|
],
|
|
"testEnvironment": "node"
|
|
}
|