-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
33 lines (26 loc) · 769 Bytes
/
Copy pathjest.config.js
File metadata and controls
33 lines (26 loc) · 769 Bytes
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
// @ts-check
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { defaults } = require('jest-config');
/** @type {import('jest').Config} */
const config = {
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['./jest.setup.ts'],
// By default Jest allows for __tests__/*.js, *.spec.js and *.test.js
// https://jestjs.io/docs/en/configuration#testregex-string-array-string
// Let's be strict and use *.test.js only
testRegex: '\\.test\\.tsx?$',
coverageThreshold: {
global: {
statements: 100,
branches: 100,
functions: 100,
lines: 100
}
},
coveragePathIgnorePatterns: [
...defaults.coveragePathIgnorePatterns,
'test-util-format.js',
'test-util-inspect.js'
]
};
module.exports = config;