Add test coverage thresholds.

This commit is contained in:
Oleksii Trekhleb 2020-12-15 10:15:37 +01:00
parent d470fa13ba
commit 94afab0dd9

View File

@ -25,4 +25,14 @@ module.exports = {
// It is reflected in properties such as location.href. // It is reflected in properties such as location.href.
// @see: https://github.com/facebook/jest/issues/6769 // @see: https://github.com/facebook/jest/issues/6769
testURL: 'http://localhost/', testURL: 'http://localhost/',
// @see: https://jestjs.io/docs/en/configuration#coveragethreshold-object
coverageThreshold: {
global: {
statements: 100,
branches: 95,
functions: 100,
lines: 100,
},
},
}; };