-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.js
31 lines (31 loc) · 1.14 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
module.exports = {
moduleFileExtensions: ['js', 'json', 'ts'],
rootDir: 'src',
testRegex: '.*\\.spec\\.ts$',
transform: {
'^.+\\.(t|j)s$': 'ts-jest',
},
collectCoverageFrom: ['**/*.(t|j)s'],
coverageDirectory: '../coverage',
testEnvironment: 'node',
moduleNameMapper: {
'@src/(.*)$': '<rootDir>/$1',
'@auth/(.*)$': ['<rootDir>/auth/$1'],
'@batch/(.*)$': ['<rootDir>/batch/$1'],
'@config/(.*)$': ['<rootDir>/config/$1'],
'@common/(.*)$': ['<rootDir>/common/$1'],
'@jobs/(.*)$': ['<rootDir>/jobs/$1'],
'@providers/(.*)$': ['<rootDir>/providers/$1'],
'@queue/(.*)$': ['<rootDir>/queue/$1'],
'@templates/(.*)$': ['<rootDir>/templates/$1'],
'@admin/(.*)$': '<rootDir>/modules/admin/$1',
'@mcommon/(.*)$': '<rootDir>/modules/common/$1',
'@content/(.*)$': '<rootDir>/modules/content/$1',
'@exhibition/(.*)$': '<rootDir>/modules/exhibition/$1',
'@item/(.*)$': '<rootDir>/modules/item/$1',
'@my/(.*)$': '<rootDir>/modules/my/$1',
'@order/(.*)$': '<rootDir>/modules/order/$1',
'@payment/(.*)$': '<rootDir>/modules/payment/$1',
'@user/(.*)$': '<rootDir>/modules/user/$1',
},
};