-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
46 lines (45 loc) · 1.03 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
const defaultConfig = {
preset: 'ts-jest',
testEnvironment: 'node',
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'^@api/(.*)$': '<rootDir>/src/@api/$1',
'^@cron/(.*)$': '<rootDir>/src/@cron/$1'
}
}
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
testTimeout: 50000,
projects: [
{
displayName: 'Auth',
testMatch: ['<rootDir>/src/auth/**/*.test.ts'],
...defaultConfig
},
{
displayName: 'Batch',
testMatch: ['<rootDir>/src/batch/**/*.test.ts'],
...defaultConfig
},
{
displayName: 'Image',
testMatch: ['<rootDir>/src/image/**/*.test.ts'],
...defaultConfig
},
{
displayName: 'Prompt',
testMatch: ['<rootDir>/src/prompt/**/*.test.ts'],
...defaultConfig
},
{
displayName: 'User',
testMatch: ['<rootDir>/src/user/**/*.test.ts'],
...defaultConfig
},
{
displayName: 'Video',
testMatch: ['<rootDir>/src/video/**/*.test.ts'],
...defaultConfig
}
]
}