-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathjest.config.json
More file actions
33 lines (33 loc) · 1.11 KB
/
jest.config.json
File metadata and controls
33 lines (33 loc) · 1.11 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
{
"//": "See https://jestjs.io/docs/configuration for config option details.",
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!src/api/**/*",
"!src/backend/index.ts",
"!src/resources/**/*",
"!src/types/**/*",
"!**/*Mock.ts",
"!**/*Types.ts"
],
"coverageReporters": ["cobertura", "lcov", "text", "text-summary"],
"moduleFileExtensions": ["js", "ts", "tsx", "json", "jsx", "node"],
"moduleNameMapper": {
"^.+\\.css$": "identity-obj-proxy"
},
"modulePaths": ["<rootDir>/src"],
"resetMocks": true,
"roots": ["<rootDir>/src"],
"setupFiles": ["react-app-polyfill/jsdom"],
"setupFilesAfterEnv": ["<rootDir>/src/setupTests.js"],
"testEnvironment": "jsdom",
"testMatch": ["<rootDir>/src/**/*.test.{js,jsx,ts,tsx}"],
"transform": {
"^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/scripts/jestTransform/babelTransform.js",
"^(?!.*\\.(cjs|css|js|json|jsx|mjs|ts|tsx)$)": "<rootDir>/scripts/jestTransform/fileTransform.js"
},
"transformIgnorePatterns": ["/node_modules/(?!axios/)"],
"watchPlugins": [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname"
]
}