-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.json
40 lines (40 loc) · 1.24 KB
/
jest.config.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
40
{
"preset": "react-native",
"roots": ["<rootDir>"],
"setupFiles": ["<rootDir>/setupTest/jest.setup.js"],
"setupFilesAfterEnv": ["<rootDir>/setupTest/jest.setup.js"],
"verbose": true,
"moduleDirectories": ["node_modules", "src"],
"clearMocks": true,
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
"testMatch": ["**/__tests__/**/*.js?(x)", "**/?(*.)+(spec|test).js?(x)"],
"coverageReporters": ["html", "text"],
"coverageDirectory": "coverage",
"collectCoverageFrom": [
"lib/**/*.{js,jsx,ts,tsx}",
"!**/node_modules/**",
"!**/vendor/**",
"!**/ios/**",
"!**/android/**",
"!**/env/**",
"!<rootDir>/index.js",
"!<rootDir>/coverage",
"!**/jestMocks/**"
],
"coveragePathIgnorePatterns": ["/node_modules/", "<rootDir>/index.js"],
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
},
"moduleNameMapper": {
".+\\.(css|style|less|sass|scss|png|jpg|ttf|woff|woff2)$": "jest-transform-stub",
"\\.(css|less)$": "identity-obj-proxy"
},
"transformIgnorePatterns": [
"node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*'|@react-native-firebase/crashlytics|@react-native-firebase/app)"
]
}