Skip to content

Commit 221ad91

Browse files
eps1lonSebastian Silbermann
authored and
Sebastian Silbermann
committed
Lower coverage threshhold
Jest is not suited for this check since has no knowledge about the build matrix. Codecov should check this instead
1 parent 28ee0ba commit 221ad91

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

jest.config.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,17 @@ const {
88
module.exports = {
99
collectCoverageFrom,
1010
coveragePathIgnorePatterns: [...coveragePathIgnorePatterns, '/__tests__/'],
11-
coverageThreshold,
11+
coverageThreshold: {
12+
...coverageThreshold,
13+
// full coverage across the build matrix (Node.js versions) but not in a single job
14+
// minimum coverage of jobs using different Node.js version
15+
'./src/waitFor.ts': {
16+
branches: 96.77,
17+
functions: 100,
18+
lines: 97.95,
19+
statements: 98,
20+
},
21+
},
1222
watchPlugins: [
1323
...watchPlugins,
1424
require.resolve('jest-watch-select-projects'),

0 commit comments

Comments
 (0)