-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
44 lines (44 loc) · 1.18 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
module.exports = {
moduleFileExtensions: ['js', 'json', 'ts'],
rootDir: 'src',
testMatch: ['**/test/**/*.spec.ts'],
transform: {
'^.+\\.(t|j)s$': 'ts-jest',
},
collectCoverageFrom: ['**/*.(t|j)s'],
coverageDirectory: '../coverage',
testEnvironment: 'node',
moduleNameMapper: {
'^src/(.*)$': '<rootDir>/$1',
},
testPathIgnorePatterns: [
'<rootDir>/appModule.ts',
'<rootDir>/main.ts',
'<rootDir>/application/dto',
'<rootDir>/application/filters',
'<rootDir>/application/jobs',
'<rootDir>/domain/entities',
'<rootDir>/domain/enum',
'<rootDir>/domain/interfaces',
'<rootDir>/domain/models',
'<rootDir>/infrastructure/',
'<rootDir>/config/',
'<rootDir>/migration/',
'<rootDir>/modules/',
],
coveragePathIgnorePatterns: [
'<rootDir>/appModule.ts',
'<rootDir>/main.ts',
'<rootDir>/application/dto',
'<rootDir>/application/filters',
'<rootDir>/application/jobs',
'<rootDir>/domain/entities',
'<rootDir>/domain/enum',
'<rootDir>/domain/interfaces',
'<rootDir>/domain/models',
'<rootDir>/infrastructure/',
'<rootDir>/config/',
'<rootDir>/migration/',
'<rootDir>/modules/',
],
};