Skip to content

Commit

Permalink
Lower coverage threshhold
Browse files Browse the repository at this point in the history
Jest is not suited for this check since has no
knowledge about the build matrix.
Codecov should check this instead
  • Loading branch information
eps1lon committed Feb 9, 2023
1 parent bb6775b commit a528e86
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,17 @@ const {
module.exports = {
collectCoverageFrom,
coveragePathIgnorePatterns: [...coveragePathIgnorePatterns, '/__tests__/'],
coverageThreshold,
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'),
Expand Down

0 comments on commit a528e86

Please sign in to comment.