forked from gilbarbara/react-floater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
29 lines (29 loc) · 960 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
module.exports = {
transform: {
'^.+\\.jsx?$': 'babel-jest',
},
moduleFileExtensions: ['js', 'jsx', 'json'],
moduleDirectories: ['node_modules', 'src', './'],
moduleNameMapper: {
'^.+\\.(css|scss)$': '<rootDir>/test/__setup__/styleMock.js',
'^.+\\.(jpe?g|png|gif|ttf|eot|svg|md)$': '<rootDir>/test/__setup__/fileMock.js',
},
setupFiles: ['<rootDir>/test/__setup__/setupFiles.js'],
setupFilesAfterEnv: ['<rootDir>/test/__setup__/setupTests.js'],
snapshotSerializers: ['enzyme-to-json/serializer'],
testEnvironmentOptions: { resources: 'usable' },
testRegex: '/test/.*?\\.(test|spec)\\.js$',
testURL: 'http://localhost:3000',
watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
collectCoverage: false,
collectCoverageFrom: ['src/**/*.js'],
coverageThreshold: {
global: {
branches: 55,
functions: 75,
lines: 65,
statements: 65,
},
},
verbose: false,
};