-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.ts
More file actions
26 lines (26 loc) · 832 Bytes
/
jest.config.ts
File metadata and controls
26 lines (26 loc) · 832 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
export default {
automock: false,
bail: 5,
clearMocks: true,
collectCoverage: true,
collectCoverageFrom: ['./src/useMultiImperativeHandle.tsx'],
coverageDirectory: 'coverage',
coveragePathIgnorePatterns: ['/node_modules/'],
coverageProvider: 'v8',
coverageReporters: ['json', 'text', 'lcov', 'clover'],
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node'],
notify: true,
preset: 'ts-jest',
runner: 'jest-runner',
setupFilesAfterEnv: ['jest-enzyme'],
testEnvironment: 'jest-environment-jsdom',
testEnvironmentOptions: {
enzymeAdapter: 'react16',
},
maxWorkers: '80%',
testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)'],
testPathIgnorePatterns: ['/node_modules/'],
testRunner: 'jasmine2',
timers: 'real',
transform: { '\\.tsx?$': 'ts-jest' },
};