-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.ts
More file actions
28 lines (28 loc) · 858 Bytes
/
jest.config.ts
File metadata and controls
28 lines (28 loc) · 858 Bytes
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
export default {
clearMocks: true,
testEnvironment: 'node',
testMatch: ['<rootDir>/tests/**/*.spec.ts'],
moduleNameMapper: {
'@application/(.*)': '<rootDir>/src/application/$1',
'@common/(.*)': '<rootDir>/src/common/$1',
'@domain/(.*)': '<rootDir>/src/domain/$1',
'@infrastructure/(.*)': '<rootDir>/src/infrastructure/$1',
'@presenter/(.*)': '<rootDir>/src/presenter/$1',
'@tests/(.*)': '<rootDir>/tests/$1'
},
setupFiles: ['<rootDir>/tests/utils/environment-variables.ts'],
collectCoverageFrom: ['<rootDir>/src/**/*.ts'],
coveragePathIgnorePatterns: ['<rootDir>/src/infrastructure/libs'],
testPathIgnorePatterns: ['/node_modules/'],
coverageThreshold: {
global: {
statements: 60,
branches: 60,
functions: 60,
lines: 60
}
},
transform: {
'^.+\\.(t|j)s?$': '@swc/jest'
}
}