-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.json
42 lines (42 loc) · 1.1 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
41
42
{
"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)",
"**/__tests__/**/*.ts?(x)",
"**/?(*.)+(spec|test).ts?(x)"
],
"coverageReporters": ["html", "text", "lcov"],
"coverageDirectory": "coverage",
"collectCoverageFrom": [
"src/**/*.{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"
}
}