-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.json
More file actions
46 lines (44 loc) · 1.22 KB
/
jest.config.json
File metadata and controls
46 lines (44 loc) · 1.22 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
{
"preset": "react-native",
"globals": {
"ts-jest": {
"babelConfig": true,
"diagnostics": true
}
},
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"transformIgnorePatterns": [
"node_modules/(?!(react-native|@react-native|@amazon-devices/kepler-ui-components|@amazon-devices/react-linear-gradient|@amazon-devices/react-native-kepler|@amazon-devices/lottie-react-native|iso-639-3)/)"
],
"modulePathIgnorePatterns": ["src/w3cmedia/shakaplayer/dist/"],
"testRegex": "/tst/.*\\.(test|spec)\\.(ts|tsx|js)$",
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
"moduleNameMapper": {
"^~/(.*)$": "<rootDir>/src/$1"
},
"coverageDirectory": "<rootDir>/coverage",
"collectCoverageFrom": [
"src/**/*",
"!**/index.{ts,js,tsx}",
"!**/types.ts",
"!src/**/*.d.ts",
"!src/w3cmedia/polyfills/**",
"!src/w3cmedia/shakaplayer/**"
],
"collectCoverage": true,
"coverageReporters": [
"json",
"json-summary",
"lcov",
"text",
"clover",
"cobertura"
],
"setupFiles": [
"./node_modules/@amazon-devices/react-native-kepler/jest/setup.js",
"./node_modules/react-native/jest/setup.js"
],
"setupFilesAfterEnv": ["<rootDir>/jest.setup.ts"]
}