-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
30 lines (30 loc) 路 771 Bytes
/
Copy pathjest.config.js
File metadata and controls
30 lines (30 loc) 路 771 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
module.exports = {
collectCoverageFrom: [
'<rootDir>/src/**/*.{ts,tsx}',
'!<rootDir>/src/main/**/*',
'!<rootDir>/src/presentation/pages/router/**/*',
'!<rootDir>/src/helpers/**/*',
'!**/*.d.ts',
'!<rootDir>/src/**/index.ts',
],
coverageDirectory: 'coverage',
testEnvironment: 'jsdom',
transform: {
'.+\\.(ts|tsx)$': 'ts-jest',
},
moduleNameMapper: {
'@/tests/(.*)': '<rootDir>/__tests__/$1',
'@/mocks/(.*)': '<rootDir>/__mocks__/$1',
'@/(.*)': '<rootDir>/src/$1',
'\\.scss$': 'identity-obj-proxy'
},
resetMocks: false,
testMatch: [
"**/__tests__/**",
],
testPathIgnorePatterns: [
"<rootDir>/node_modules/",
"<rootDir>/__tests__/cypress",
"<rootDir>/__tests__/presentation/helpers",
]
}