-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjest.config.js
More file actions
30 lines (29 loc) · 821 Bytes
/
jest.config.js
File metadata and controls
30 lines (29 loc) · 821 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
const {
collectCoverageFrom,
coveragePathIgnorePatterns,
coverageThreshold,
watchPlugins,
} = require('kcd-scripts/jest')
module.exports = {
collectCoverageFrom,
coveragePathIgnorePatterns: [...coveragePathIgnorePatterns, '/__tests__/'],
coverageThreshold: {
...coverageThreshold,
// full coverage across the build matrix (Node.js versions) but not in a single job
// minimum coverage of jobs using different Node.js version
'./src/waitFor.ts': {
branches: 96.77,
functions: 100,
lines: 97.95,
statements: 98,
},
},
watchPlugins: [
...watchPlugins,
require.resolve('jest-watch-select-projects'),
],
projects: [
// No idea why I need to specify a project instead of having a single config
require.resolve('./tests/jest.config.js'),
],
}