-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
34 lines (33 loc) · 813 Bytes
/
jest.config.js
File metadata and controls
34 lines (33 loc) · 813 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
29
30
31
32
33
34
module.exports = {
roots: ['<rootDir>/src'],
collectCoverageFrom: [
'<rootDir>/src/**/*.{ts,tsx}',
'!<rootDir>/src/main/**/*',
'!<rootDir>/src/presentation/pages/index.tsx',
'!<rootDir>/src/**/index.ts',
'!**/*d.ts'
],
coverageDirectory: 'coverage',
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['<rootDir>/src/main/config/jest-setup.ts'],
transform: {
'.+\\.(ts|tsx)$': 'ts-jest'
},
moduleNameMapper: {
'@/(.*)': '<rootDir>/src/$1',
'\\.scss$': 'identity-obj-proxy'
},
testPathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/src/main/test/cypress'
],
modulePathIgnorePatterns: ['src/main/test/cypress'],
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100
}
}
}