-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.json
More file actions
52 lines (52 loc) · 1.74 KB
/
Copy pathjest.config.json
File metadata and controls
52 lines (52 loc) · 1.74 KB
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
43
44
45
46
47
48
49
50
51
52
{
"preset": "react-native",
"testRegex": "/*/__tests__/.*\\.(test|spec)\\.(ts|tsx|js)$",
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
"moduleNameMapper": {
"^~/(.*)$": "<rootDir>/src/$1"
},
"modulePaths": ["<rootDir>/src"],
"roots": ["<rootDir>/src/", "<rootDir>/node_modules/"],
"collectCoverage": true,
"coverageReporters": ["json", "json-summary", "lcov", "text"],
"collectCoverageFrom": [
"src/**/*",
"!**/index.{ts,js,tsx}",
"!**/types.ts",
"!src/**/*.d.ts",
"!src/**/__snapshots__/*",
"!src/services/appConfig/babel/*",
"!src/**/__tests__/mocks/*",
"!src/test-utils/**/*",
"!src/api/**/*.json",
"!src/models/**/*.ts",
"!src/**/constants.ts",
"!src/**/types.ts",
"!src/**/styles.ts",
"!src/w3cmedia/*",
"!src/w3cmedia/polyfills/*",
"!src/w3cmedia/shakaplayer/dist/**/*",
"!src/w3cmedia/shakaplayer/*",
"src/w3cmedia/shakaplayer/getTrackVariantLabel.ts"
],
"testPathIgnorePatterns": ["src/w3cmedia/shakaplayer/dist"],
"transformIgnorePatterns": [
"node_modules/(?!(jest-)?react-native|@react-native|@amazon-devices/kepler-ui-components|@amazon-devices/react-native-kepler|@amazon-devices/lottie-react-native|@amazon-devices/react-navigation|@amazon-devices/react-native-reanimated|@amazon-devices/react-native-gesture-handler|@amazon-devices/react-navigation__drawer|@amazon-devices/react-linear-gradient|iso-639-3)"
],
"coverageDirectory": ".tmp/coverage",
"globals": {
"ts-jest": {
"babelConfig": true,
"diagnostics": true
}
},
"coverageThreshold": {
"global": {
"branches": 50,
"functions": 50,
"lines": 50,
"statements": 50
}
},
"setupFilesAfterEnv": ["<rootDir>/jest.setup.tsx"]
}