-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
34 lines (34 loc) · 845 Bytes
/
jest.config.js
File metadata and controls
34 lines (34 loc) · 845 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
31
32
33
34
module.exports = {
resetMocks: true,
resetModules: true,
verbose: true,
browser: true,
collectCoverage: true,
transform: {
'^.+\\.(js|jsx)$': 'babel-jest',
'^.+\\.(ts|tsx)$': 'ts-jest'
},
clearMocks: true,
coverageDirectory: 'coverage',
coverageReporters: ['text', 'clover', 'html', 'lcov'],
coverageThreshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80
}
},
globals: {
'ts-jest': {
extends: './babel.config.js'
}
},
moduleFileExtensions: ['ts', 'tsx', 'js'],
notify: true,
notifyMode: 'always',
roots: ['<rootDir>/packages'],
testMatch: ['<rootDir>/packages/*/tests/**/*.test.(ts|tsx|js)'],
setupFilesAfterEnv: ['jest-styled-components', '<rootDir>/jest/testSetup.ts'],
snapshotSerializers: ['enzyme-to-json/serializer']
};