-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.js
32 lines (32 loc) · 888 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
module.exports = {
roots: ['<rootDir>/src'],
collectCoverageFrom: [
'<rootDir>/src/**/*.ts',
'!<rootDir>/src/main.ts',
'!<rootDir>/src/infra/ioc/**/*.module.ts',
'!<rootDir>/src/infra/config/**/*.module.ts',
'!<rootDir>/src/infra/cryptography/**/*.module.ts',
'!<rootDir>/src/infra/database/**',
'!<rootDir>/src/presentation/**',
'!<rootDir>/src/main/**/**/**/**/*.usecase.ts',
'!<rootDir>/src/infra/config/environment-config/environment-config.validation.ts',
],
coverageDirectory: 'coverage',
testEnvironment: 'node',
transform: {
'.+\\.ts$': 'ts-jest',
},
testRegex: '.*\\.spec\\.ts$',
moduleFileExtensions: ['js', 'json', 'ts'],
moduleNameMapper: {
'@app/(.*)': '<rootDir>/src/$1',
},
coverageThreshold: {
global: {
branches: 90,
functions: 90,
lines: 100,
statements: 90,
},
},
};