This repository has been archived by the owner on Dec 22, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.json
47 lines (47 loc) · 1.47 KB
/
jest.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
43
44
45
46
47
{
"automock": false,
"bail": true,
"clearMocks": true,
"collectCoverage": true,
"coverageDirectory": "./coverage",
"coveragePathIgnorePatterns": ["/node_modules/"],
"coverageProvider": "v8",
"coverageReporters": ["clover", "json", "lcov", "text"],
"errorOnDeprecated": true,
"extensionsToTreatAsEsm": [".ts", ".tsx"],
"fakeTimers": {
"enableGlobally": false
},
"forceCoverageMatch": ["**/*.{js,jsx,ts,tsx}"],
"maxWorkers": "50%",
"moduleDirectories": ["./node_modules"],
"moduleFileExtensions": ["cjs", "js", "json", "jsx", "mjs", "ts", "tsx"],
"moduleNameMapper": {
"\\.(css|scss)$": "<rootDir>/tests/mocks/StyleStub.ts",
"\\.(jpeg|jpg|png|svg)$": "<rootDir>/tests/mocks/ImageStub.ts"
},
"notify": true,
"notifyMode": "failure-change",
"resetMocks": true,
"resetModules": true,
"restoreMocks": false,
"runner": "jest-runner",
"setupFilesAfterEnv": ["<rootDir>/tests/setup.ts"],
"slowTestThreshold": 5,
"testEnvironment": "@happy-dom/jest-environment",
"testMatch": ["**/tests/**/?(*.)+(spec|test).[jt]s?(x)"],
"testPathIgnorePatterns": ["/node_modules/"],
"testRunner": "jest-circus/runner",
"transform": {
"\\.[jt]sx?$": [
"@swc/jest",
{
"jsc": {
"target": "es2022"
}
}
]
},
"transformIgnorePatterns": ["/node_modules/"],
"watchman": true
}