forked from team-scogerschurlow/SDC-reviews
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
22 lines (21 loc) · 997 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
module.exports = {
// Automatically clear mock calls and instances between every test
clearMocks: true,
collectCoverageFrom: ['client/src/**/*.{js,jsx,mjs}'],
coverageDirectory: 'coverage',
moduleFileExtensions: ['js', 'json', 'jsx'],
setupFiles: ['<rootDir>/enzyme.config.js'],
testEnvironment: 'jsdom',
testMatch: ['**/__tests__/**/*.js?(x)', '**/?(*.)+(spec|test).js?(x)'],
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
testPathIgnorePatterns: ['\\\\node_modules\\\\'],
testURL: 'http://localhost',
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
transformIgnorePatterns: ['<rootDir>/node_modules/'],
// Indicates whether each individual test should be reported during the run
transform: {
"^.+\\.jsx$": "babel-jest",
"^.+\\.js$": "babel-jest"
},
verbose: false,
};