Skip to content

Commit

Permalink
Add nyc coverage config
Browse files Browse the repository at this point in the history
This takes the coverage settings already in the package.json for Jest
so we don’t repeat ourselves.
  • Loading branch information
pezholio committed Jun 14, 2023
1 parent ff7f653 commit 23440ea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nyc.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const packageJson = require('./package.json')

const coverageThreshold = packageJson.jest.coverageThreshold.global

module.exports = {
...coverageThreshold,
}

0 comments on commit 23440ea

Please sign in to comment.