forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest-preset.json
39 lines (39 loc) · 1.02 KB
/
jest-preset.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"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"
}