Skip to content

Commit

Permalink
Configure frontend tests to fail if coverage threshold not met
Browse files Browse the repository at this point in the history
Follow the practice in other Hypothesis projects of failing if not all
statements are covered, unless explicitly ignored.
  • Loading branch information
robertknight committed Nov 14, 2024
1 parent 85828e0 commit a66d5eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions h/static/scripts/karma.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ module.exports = function (config) {
'report-config': {
json: { subdir: './' },
},
thresholds: {
global: {
statements: 100,
},
},
},

// Use https://www.npmjs.com/package/karma-mocha-reporter
Expand Down

0 comments on commit a66d5eb

Please sign in to comment.