-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
31 lines (31 loc) · 886 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
module.exports = {
testEnvironment: 'jsdom',
verbose: true,
moduleNameMapper: {
'@utils': '<rootDir>/src/utils',
'@helpers': '<rootDir>/src/helpers',
'@constants': '<rootDir>/src/constants',
'@test-constants': '<rootDir>/src/tests/test-constants',
'@store': '<rootDir>/src/store',
'@data': '<rootDir>/src/data',
'@fetch': '<rootDir>/src/data/fetch',
'@parse': '<rootDir>/src/data/parse',
'@presentation': '<rootDir>/src/presentation',
},
coverageReporters: [
'text',
],
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'],
transform: {
'^.+\\.(ts)$': 'ts-jest',
},
globals: {
'ts-jest': {
babel: true,
tsConfig: 'tsconfig.json',
},
},
setupFilesAfterEnv: [
'<rootDir>/src/tests/setup-tests.ts',
],
};