forked from gilbarbara/react-spotify-web-playback
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
28 lines (28 loc) · 844 Bytes
/
jest.config.js
File metadata and controls
28 lines (28 loc) · 844 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
module.exports = {
collectCoverage: false,
collectCoverageFrom: ['src/**/*.{ts,tsx}'],
coverageThreshold: {
global: {
branches: 70,
functions: 70,
lines: 70,
statements: 70,
},
},
globals: {
'ts-jest': {
tsConfig: 'test/tsconfig.json',
},
},
moduleDirectories: ['node_modules', 'src', './'],
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx'],
preset: 'ts-jest',
setupFiles: ['<rootDir>/test/__setup__/setupFiles.ts'],
setupFilesAfterEnv: ['<rootDir>/test/__setup__/setupTests.ts'],
snapshotSerializers: ['jest-serializer-html', 'enzyme-to-json/serializer'],
testMatch: null,
testRegex: '/test/.*?\\.(test|spec)\\.tsx?$',
testURL: 'http://localhost:3000/',
verbose: false,
watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
};