forked from adobecom/caas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
44 lines (32 loc) · 1.3 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
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
// Automatically clear mock calls and instances between every test
clearMocks: true,
collectCoverageFrom: ['react/**/*.{js,jsx,mjs}'],
"coveragePathIgnorePatterns": [
"Modal",
],
// The directory where Jest should output its coverage files
coverageDirectory: 'coverage',
coverageThreshold: {
global: {
branches: 30,
functions: 50,
lines: 50,
statements: 50,
},
},
// An array of file extensions your modules use
moduleFileExtensions: ['js', 'json', 'jsx'],
setupFiles: ['<rootDir>/enzyme.config.js'],
// The test environment that will be used for testing
testEnvironment: 'jest-environment-jsdom-fifteen',
// The glob patterns Jest uses to detect test files
testMatch: ['**/__tests__/**/*.js?(x)', '**/?(*.)+(spec|test).js?(x)'],
testPathIgnorePatterns: ['\\\\node_modules\\\\', '__tests__/mocks', '__tests__/utils', '__tests__/constants'],
testURL: 'http://localhost',
transformIgnorePatterns: ['<rootDir>/node_modules/'],
// Indicates whether each individual test should be reported during the run
verbose: false,
};