-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.js
35 lines (34 loc) · 866 Bytes
/
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
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['./'],
transform: { '\\.ts$': ['ts-jest'] },
testRegex: '(/__tests__/.*|(\\.|/)(test|spec|e2e-spec))\\.tsx?$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
globals: {
'ts-jest': {
tsconfig: {
// allow js in typescript
allowJs: true,
},
},
},
coverageProvider: 'v8',
collectCoverageFrom: [
'src/**/*.ts',
'!src/main.ts',
'!src/**/*.config.ts',
'!src/application/controllers/*',
'!src/application/interceptors/*',
'!src/domain/entities/**',
'!src/domain/interfaces/*',
'!src/domain/modules/*',
'!src/infrastructure/**',
],
coverageThreshold: {
global: {
lines: 70,
statements: 70,
},
},
};