mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 01:25:39 +00:00
216bce3163
Summary: Fixes #19370 Applied changes to existing project that uses jest snapshot testing. Testing was broken before and now works. To verify: Run any snapshot test containing an image reference on Windows before and after this PR. [WINDOWS][BUGFIX][jest] - Fixed jest snapshot testing on windows Closes https://github.com/facebook/react-native/pull/19496 Differential Revision: D8195947 Pulled By: hramos fbshipit-source-id: 909b5fe7cfd8c6286baf161a227a359854a37603
28 lines
815 B
JSON
28 lines
815 B
JSON
{
|
|
"haste": {
|
|
"defaultPlatform": "ios",
|
|
"platforms": ["android", "ios", "native"],
|
|
"hasteImplModulePath": "<rootDir>/node_modules/react-native/jest/hasteImpl.js",
|
|
"providesModuleNodeModules": [
|
|
"react-native"
|
|
]
|
|
},
|
|
"moduleNameMapper": {
|
|
"^React$": "<rootDir>/node_modules/react"
|
|
},
|
|
"modulePathIgnorePatterns": [
|
|
"<rootDir>/node_modules/react-native/Libraries/react-native/"
|
|
],
|
|
"transform": {
|
|
"^.+\\.js$": "babel-jest",
|
|
"^.+\\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp)$": "<rootDir>/node_modules/react-native/jest/assetFileTransformer.js"
|
|
},
|
|
"transformIgnorePatterns": [
|
|
"node_modules/(?!(jest-)?react-native|react-clone-referenced-element)"
|
|
],
|
|
"setupFiles": [
|
|
"<rootDir>/node_modules/react-native/jest/setup.js"
|
|
],
|
|
"testEnvironment": "node"
|
|
}
|