forked from gilbarbara/react-floater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.ts
32 lines (32 loc) · 911 Bytes
/
jest.config.ts
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
module.exports = {
collectCoverage: false,
collectCoverageFrom: ['src/**/*.{ts,tsx}'],
coverageThreshold: {
global: {
branches: 70,
functions: 90,
lines: 90,
statements: 90,
},
},
globals: {
'ts-jest': {
tsconfig: 'test/tsconfig.json',
diagnostics: {
ignoreCodes: ['TS151001'],
},
},
},
moduleDirectories: ['node_modules', 'src', './'],
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json'],
preset: 'ts-jest',
setupFiles: ['@testing-library/react/dont-cleanup-after-each'],
setupFilesAfterEnv: ['<rootDir>/test/__setup__/setupTests.ts'],
snapshotSerializers: ['jest-serializer-html'],
testEnvironment: 'jsdom',
testMatch: null,
testRegex: '/test/.*?\\.(test|spec)\\.tsx?$',
testURL: 'http://localhost/',
verbose: false,
watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
};