40 lines
1.0 KiB
JSON
40 lines
1.0 KiB
JSON
{
|
|
"haste": {
|
|
"defaultPlatform": "ios",
|
|
"platforms": ["android", "ios", "native"],
|
|
"hasteImplModulePath": "<rootDir>/node_modules/react-native/jest/hasteImpl.js",
|
|
"providesModuleNodeModules": [
|
|
"react-native"
|
|
]
|
|
},
|
|
"moduleFileExtensions": [
|
|
"js",
|
|
"json",
|
|
"jsx",
|
|
"node",
|
|
"ts",
|
|
"tsx"
|
|
],
|
|
"moduleNameMapper": {
|
|
"^React$": "<rootDir>/node_modules/react"
|
|
},
|
|
"modulePathIgnorePatterns": [
|
|
"<rootDir>/node_modules/react-native/Libraries/react-native/"
|
|
],
|
|
"transform": {
|
|
"^.+\\.(js|ts|tsx)$": "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)"
|
|
],
|
|
"testMatch": [
|
|
"**/__tests__/**/*.(js|ts|tsx)",
|
|
"**/?(*.)+(spec|test).(js|ts|tsx)"
|
|
],
|
|
"setupFiles": [
|
|
"<rootDir>/node_modules/react-native/jest/setup.js"
|
|
],
|
|
"testEnvironment": "node"
|
|
}
|