-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathjest.config.js
More file actions
19 lines (19 loc) · 774 Bytes
/
Copy pathjest.config.js
File metadata and controls
19 lines (19 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module.exports = {
testEnvironment: 'node',
roots: ['<rootDir>/src'],
preset: 'ts-jest',
setupFilesAfterEnv: ['<rootDir>/setupTests.ts', 'mock-local-storage'],
transform: {
'\\.(jpe?g|png|gif|webp|svg|mp4|webm|ogg|mp3|wav|flac|aac|woff2?|eot|ttf|otf)$': '<rootDir>/file-mock.js',
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node', 'svg'],
testPathIgnorePatterns: ['<rootDir>/node_modules/'],
snapshotSerializers: ['enzyme-to-json/serializer'],
moduleNameMapper: {
'\\.(jpe?g|png|gif|webp|svg|mp4|webm|ogg|mp3|wav|flac|aac|woff2?|eot|ttf|otf)$': '<rootDir>/file-mock.js',
},
coverageDirectory: './coverage/',
collectCoverage: true,
};