-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
jest.config.json
34 lines (34 loc) · 1021 Bytes
/
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
{
"testEnvironment": "node",
"transform": {
"^.+\\.ts$": "ts-jest"
},
"bail": 1,
"moduleFileExtensions": ["ts", "json", "js", "mjs", "node"],
"modulePathIgnorePatterns": [
"<rootDir>/dist",
"<rootDir>/templates",
"<rootDir>/http",
"<rootDir>/docs"
],
"testTimeout": 30000,
"testMatch": ["<rootDir>/tests/**/*.test.ts"],
"coverageDirectory": "coverage",
"moduleNameMapper": {
"__mocks__/(.*)": "<rootDir>/tests/__mocks__/$1",
"@common/(.*)": "<rootDir>/src/common/$1",
"@config/(.*)": "<rootDir>/src/config/$1",
"@config": "<rootDir>/src/config",
"@core/(.*)": "<rootDir>/src/core/$1",
"@core": "<rootDir>/src/core",
"@database/(.*)": "<rootDir>/src/database/$1",
"@database": "<rootDir>/src/database",
"@i18n": "<rootDir>/src/i18n",
"@middleware/(.*)": "<rootDir>/src/middleware/$1",
"@modules/(.*)": "<rootDir>/src/modules/$1",
"@providers/(.*)": "<rootDir>/src/providers/$1"
},
"globals": {
"fetch": "global.fetch"
}
}