-
Notifications
You must be signed in to change notification settings - Fork 7
/
jest-e2e.js
30 lines (30 loc) · 1.28 KB
/
jest-e2e.js
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
module.exports = {
moduleNameMapper: {
"^@services/(.*)": "<rootDir>//src/services/$1",
"^@admin-controller/(.*)": "<rootDir>//src/controllers/admin-controller/$1",
"^@device-data-controller/(.*)":
"<rootDir>//src/controllers/device-data-controller/$1",
"^@user-management-controller/(.*)":
"<rootDir>//src/controllers/user-management/$1",
"^@dto/(.*)": "<rootDir>//src/entities/dto/$1",
"^@interfaces/(.*)": "<rootDir>//src/entities/interfaces/$1",
"^@enum/(.*)": "<rootDir>//src/entities/enum/$1",
"^@entities/(.*)": "<rootDir>//src/entities/$1",
"^@modules/(.*)": "<rootDir>//src/modules/$1",
"^@loaders/(.*)": "<rootDir>//src/loaders/$1",
"^@auth/(.*)": "<rootDir>//src/auth/$1",
"^@helpers/(.*)": "<rootDir>//src/helpers/$1",
"^@config/(.*)": "<rootDir>//src/config/$1",
"^@resources/(.*)": "<rootDir>//src/resources/$1",
},
moduleFileExtensions: ["js", "json", "ts"],
rootDir: ".",
testEnvironment: "node",
testMatch: ["<rootDir>/test/**/*.e2e-spec.{ts,js}"],
transform: {
"^.+\\.(t|j)s$": "ts-jest",
},
coverageDirectory: "./coverage-e2e",
setupFiles: ["<rootDir>/.jest/setEnvVars.ts"],
collectCoverage: true,
};