-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.json
31 lines (31 loc) · 913 Bytes
/
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
{
"testEnvironment": "jsdom",
"testRegex": "test.ts|test.tsx",
"preset": "ts-jest",
"transformIgnorePatterns": ["/node_modules/"],
"transform": {
"^.+\\.[t|j]sx?$": "ts-jest"
},
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!src/develop.{js, jsx, ts, tsx}",
"!src/index.ts",
"!src/levels/*.*",
"!src/pageSetup.tsx"
],
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 80,
"lines": 85,
"statements": 85
}
},
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.ts",
"\\.(css|less|scss)$": "<rootDir>/__mocks__/styleMock.ts"
},
"setupFiles": ["<rootDir>/__tests__/setup.ts", "<rootDir>/.polyfills/rAF.ts", "jest-canvas-mock"],
"modulePaths": ["<rootDir>", "<rootDir>/src", "<rootDir>/__tests__"],
"bail": false
}