-
Notifications
You must be signed in to change notification settings - Fork 2
/
jest.config.js
35 lines (35 loc) · 848 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
32
33
34
35
module.exports = {
clearMocks: true,
collectCoverage: true,
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!**/*.d.ts', '!./*.js', '!src/**/stories.tsx'],
coverageDirectory: 'coverage',
coveragePathIgnorePatterns: [
'lib',
'badges',
'coverage',
'node_modules',
// Storybook
'src/storybook.tsx',
'.storybook',
'.awcache'
],
coverageReporters: ['json', 'json-summary', 'text', 'lcov'],
coverageThreshold: {
global: {
branches: 99,
functions: 99,
lines: 99,
statements: 99
}
},
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json'
}
},
preset: 'ts-jest',
setupFilesAfterEnv: ['<rootDir>/src/setupTests.ts'],
snapshotSerializers: ['@emotion/jest/enzyme-serializer'],
testEnvironment: 'jsdom',
testPathIgnorePatterns: ['/node_modules/', '/lib/']
};