-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjest.config.js
More file actions
24 lines (24 loc) · 960 Bytes
/
jest.config.js
File metadata and controls
24 lines (24 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
export default {
preset: "ts-jest",
testEnvironment: "node",
transform: {
"^.+\\.ts$": ["ts-jest", { tsconfig: "tsconfig.jest.json" }],
},
moduleNameMapper: {
"^@app/(.*)\\.js$": "<rootDir>/app/$1.ts",
"^@app/(.*)$": "<rootDir>/app/$1.ts",
"^@functions/(.*)\\.js$": "<rootDir>/app/functions/$1.ts",
"^@functions/(.*)$": "<rootDir>/app/functions/$1.ts",
"^@translations/(.*)\\.js$": "<rootDir>/app/translations/$1.ts",
"^@translations/(.*)$": "<rootDir>/app/translations/$1.ts",
"^@routes/(.*)\\.js$": "<rootDir>/app/routes/$1.ts",
"^@routes/(.*)$": "<rootDir>/app/routes/$1.ts",
"^@utils/(.*)\\.js$": "<rootDir>/app/utils/$1.ts",
"^@utils/(.*)$": "<rootDir>/app/utils/$1.ts",
"^@configs/(.*)\\.js$": "<rootDir>/app/configs/$1.ts",
"^@configs/(.*)$": "<rootDir>/app/configs/$1.ts",
"^@interface/(.*)\\.js$": "<rootDir>/app/types/$1.ts",
"^@interface/(.*)$": "<rootDir>/app/types/$1.ts",
"^(\\.{1,2}/.*)\\.js$": "$1",
},
};