forked from VincentJouanne/nest-clean-architecture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest-integration.json
36 lines (36 loc) · 1.46 KB
/
jest-integration.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
{
"moduleFileExtensions": ["js", "json", "ts"],
"rootDir": ".",
"testMatch": ["**/integration/**"],
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": ["**/infrastructure/adapters/secondaries/real/**.ts"],
"coverageThreshold": {
"**/adapters/secondaries/real/**.ts": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
},
"coverageDirectory": "./coverage",
"testEnvironment": "node",
"roots": ["<rootDir>/api-gateway", "<rootDir>/common", "<rootDir>/identity-and-access"],
"moduleNameMapper": {
"^@api-gateway$": "<rootDir>/api-gateway/src",
"^@app/api-gateway/(.*)$": "<rootDir>/api-gateway/src/$1",
"^@common/logger$": "<rootDir>/common/logger/src",
"^@common/logger/(.*)$": "<rootDir>/common/logger/src/$1",
"^@common/domain-event-publisher$": "<rootDir>/common/domain-event-publisher/src",
"^@common/domain-event-publisher/(.*)$": "<rootDir>/common/domain-event-publisher/src/$1",
"^@common/prisma$": "<rootDir>/common/prisma/src",
"^@common/prisma/(.*)$": "<rootDir>/common/prisma/src/$1",
"^@common/utils$": "<rootDir>/common/utils/",
"^@common/utils/(.*)$": "<rootDir>/common/utils/$1",
"^@identity-and-access$": "<rootDir>/identity-and-access/src",
"^@identity-and-access/(.*)$": "<rootDir>/identity-and-access/src/$1",
"^@notifications$": "<rootDir>/notifications/src",
"^@notifications/(.*)$": "<rootDir>/notifications/src/$1"
}
}