-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
28 lines (28 loc) · 859 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
module.exports = {
roots: ['<rootDir>/src'],
collectCoverageFrom: [
'<rootDir>/src/**/*.{ts,tsx}',
'!<rootDir>/src/main/**/*',
'!<rootDir>/src/**/index.ts',
'!<rootDir>/src/presentation/components/router/**/*',
'!**/*.d.ts'
],
coverageDirectory: 'coverage',
testPathIgnorePatterns: [
'<rootDir>/node_modules/'
],
testEnvironment: 'jsdom',
transform: {
'.+\\.(ts|tsx)$': 'ts-jest'
},
moduleNameMapper: {
'@domain/(.*)': '<rootDir>/src/domain/$1',
'@data/(.*)': '<rootDir>/src/data/$1',
'@infra/(.*)': '<rootDir>/src/infra/$1',
'@presentation/(.*)': '<rootDir>/src/presentation/$1',
'@components/(.*)': '<rootDir>/src/presentation/components/$1',
'@styles/(.*)': '<rootDir>/src/presentation/styles/$1',
'@main/(.*)': '<rootDir>/src/main/$1',
'\\.scss$': 'identity-obj-proxy'
}
}