Skip to content

Commit

Permalink
Chore: Configure code coverage threshold in Jest ⚙️ (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
DHedgecock committed Feb 20, 2020
1 parent 62bd1ec commit 10c592b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,14 @@ module.exports = {
collectCoverage: true,
coverageReporters: ['text-summary', 'lcov'],
collectCoverageFrom: ['src/**/*.js', 'src/**/*.ts'],

// Require 100% code coverage 🎉
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},
}

0 comments on commit 10c592b

Please sign in to comment.