forked from gilbarbara/react-joyride
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
31 lines (31 loc) · 971 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
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'],
testEnvironment: 'jest-environment-jsdom-global',
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,jsx}'],
coverageThreshold: {
global: {
branches: 15,
functions: 15,
lines: 15,
statements: 15,
},
},
verbose: false,
};