-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathjest.config.js
More file actions
25 lines (25 loc) · 757 Bytes
/
Copy pathjest.config.js
File metadata and controls
25 lines (25 loc) · 757 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
module.exports = {
preset: 'ts-jest',
globals: {
'ts-jest': {
babelConfig: true,
},
},
snapshotSerializers: ['@emotion/jest/serializer'],
roots: ['<rootDir>'],
testMatch: ['<rootDir>/**/**.test.{ts,tsx}'],
testPathIgnorePatterns: ['<rootDir>/node_modules/'],
moduleFileExtensions: ['js', 'ts', 'tsx'],
modulePaths: ['<rootDir>'],
setupFilesAfterEnv: ['<rootDir>/setupTest.ts'],
testURL: 'http://localhost',
moduleNameMapper: {
'\\.svg': '<rootDir>/testMocks.ts',
'\\.(css|jpg|png)$': '<rootDir>/empty-module.js',
'^.+\\.(ts|tsx)?$': 'ts-jest',
},
moduleDirectories: ['node_modules', 'src'],
notify: true,
notifyMode: 'always',
collectCoverageFrom: ['**/*.{ts,tsx}', '!<rootDir>/node_modules/'],
}