-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.json
40 lines (40 loc) · 1.12 KB
/
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
32
33
34
35
36
37
38
39
40
{
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s",
"!**/*.spec.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node",
"moduleNameMapper": {
"^@/api(.*)$": "<rootDir>/api$1",
"^@/common(.*)$": "<rootDir>/common$1",
"^@/config(.*)$": "<rootDir>/config$1",
"^@/constants(.*)$": "<rootDir>/constants$1",
"^@/database(.*)$": "<rootDir>/database$1",
"^@/decorators(.*)$": "<rootDir>/decorators$1",
"^@/exceptions(.*)$": "<rootDir>/exceptions$1",
"^@/filters(.*)$": "<rootDir>/filters$1",
"^@/generated(.*)$": "<rootDir>/generated$1",
"^@/guards(.*)$": "<rootDir>/guards$1",
"^@/interceptors(.*)$": "<rootDir>/interceptors$1",
"^@/libs(.*)$": "<rootDir>/libs$1",
"^@/mail(.*)$": "<rootDir>/mail$1",
"^@/shared(.*)$": "<rootDir>/shared$1",
"^@/utils(.*)$": "<rootDir>/utils$1"
},
"setupFiles": [
"../setup-jest.mjs"
],
"cacheDirectory": "../.jest-cache",
"testTimeout": 120000
}