forked from gilbarbara/react-joyride
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
47 lines (47 loc) · 1.05 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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__/shim.js',
'<rootDir>/test/__setup__/index.js',
],
setupTestFrameworkScriptFile: '<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: true,
};