-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathjest.config.mjs
More file actions
38 lines (31 loc) · 1.1 KB
/
jest.config.mjs
File metadata and controls
38 lines (31 loc) · 1.1 KB
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
/*
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/configuration
*
* For more CLI info: https://jestjs.io/docs/cli#reference
*/
/** @type {import('jest').Config} */
const config = {
// Stop running tests after `n` failures
bail: 1,
// Automatically clear mock calls, instances, contexts and results before every test
clearMocks: true,
// Indicates whether the coverage information should be collected while executing the test
collectCoverage: true,
// The directory where Jest should output its coverage files
coverageDirectory: 'coverage',
// An object that configures minimum threshold enforcement for coverage results
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
modulePathIgnorePatterns: ['example/'],
// A preset that is used as a base for Jest's configuration
preset: 'react-native',
};
export default config;