-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.json
28 lines (28 loc) · 833 Bytes
/
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
{
"roots": ["<rootDir>/src", "<rootDir>/__tests__/unit"],
"testEnvironment": "node",
"modulePaths": ["<rootDir>/src"],
"moduleDirectories": ["node_modules"],
"transform": {
"^.+\\.svelte$": "svelte-jester",
"^.+\\.(ts|tsx|js|jsx)$": ["babel-jest"]
},
"moduleFileExtensions": ["js", "svelte"],
"extensionsToTreatAsEsm": [".ts", ".svelte"],
"moduleNameMapper": {
"^\\$app(.*)$": "<rootDir>/.svelte-kit/build/runtime/app$1",
"^\\$lib(.*)$": "<rootDir>/src/lib$1",
"^\\$routes(.*)$": "<rootDir>/src/routes$1"
},
"setupFilesAfterEnv": ["@testing-library/jest-dom/extend-expect"],
"coverageThreshold": {
"global": {
"branches": 50,
"functions": 100,
"lines": 85,
"statements": 80
}
},
"collectCoverageFrom": ["src/**/*.{js,svelte}"],
"testTimeout": 30000
}