-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.json
More file actions
54 lines (54 loc) · 1.22 KB
/
jest.config.json
File metadata and controls
54 lines (54 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
47
48
49
50
51
52
53
54
{
"verbose": true,
"projects": [
{
"displayName": "backend",
"testEnvironment": "node",
"testMatch": [
"<rootDir>/src/backend/tests/**/*-test.ts"
],
"collectCoverageFrom": [
"<rootDir>/src/backend/**/*.ts"
],
"coveragePathIgnorePatterns": [
"<rootDir>/node_modules/",
"<rootDir>/src/frontend/"
],
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
}
},
{
"displayName": "frontend",
"testEnvironment": "jsdom",
"testMatch": [
"<rootDir>/src/frontend/src/**/*.test.tsx"
],
"collectCoverageFrom": [
"<rootDir>/src/frontend/src/**/*.tsx"
],
"coveragePathIgnorePatterns": [
"<rootDir>/node_modules/",
"<rootDir>/src/backend/"
],
"moduleNameMapper": {
"\\.(css|less|svg)$": "<rootDir>/src/frontend/__mocks__/styleMock.js"
},
"transform": {
"^.+\\.tsx?$": "ts-jest"
}
}
],
"collectCoverageFrom": [
"!**/node_modules/**",
"!**/vendor/**",
"!**/tests/**",
"!vite.config.js",
"!built_backend/**",
"!coverage/**",
"!.eslintrc.cjs",
"!cypress.config.js",
"!cypress/**",
"!dist/**"
]
}