-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
28 lines (28 loc) · 970 Bytes
/
jest.config.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
module.exports = {
rootDir: ".",
roots: ["./"],
testMatch: [
"**/__tests__/**/*.+(ts|tsx|js)",
"**/?(*.)+(spec|test).+(ts|tsx|js)",
],
testPathIgnorePatterns: ["/node_modules/", "/build/*."],
transform: {
"^.+\\.(ts|tsx)$": "ts-jest",
},
moduleNameMapper: {
"@models/(.*)": "<rootDir>/models/$1",
"@modules/(.*)": "<rootDir>/graphQL/modules/$1",
"@graphQL/(.*)": "<rootDir>/graphQL/$1",
"@controllers/(.*)": "<rootDir>/controllers/$1",
"@routes/(.*)": "<rootDir>/routes/$1",
"@utils/(.*)": "<rootDir>/utils/$1",
"@validators/(.*)": "<rootDir>/validators/$1",
"@schemas/(.*)": "<rootDir>/schemas/$1",
"@services/(.*)": "<rootDir>/controllers/services/$1",
"@middlewares/(.*)": "<rootDir>/controllers/services/middlewares/$1",
"@config/(.*)": "<rootDir>/config/$1",
"@queries/(.*)": "<rootDir>/queries/$1",
"@customTypes/(.*)": "<rootDir>/types/$1",
"@root/(.*)": "<rootDir>/$1",
},
};