From 94afab0dd95820bc1b150de2fa08120a51573fcd Mon Sep 17 00:00:00 2001 From: Oleksii Trekhleb Date: Tue, 15 Dec 2020 10:15:37 +0100 Subject: [PATCH] Add test coverage thresholds. --- jest.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/jest.config.js b/jest.config.js index 06e76526..3fec2252 100644 --- a/jest.config.js +++ b/jest.config.js @@ -25,4 +25,14 @@ module.exports = { // It is reflected in properties such as location.href. // @see: https://github.com/facebook/jest/issues/6769 testURL: 'http://localhost/', + + // @see: https://jestjs.io/docs/en/configuration#coveragethreshold-object + coverageThreshold: { + global: { + statements: 100, + branches: 95, + functions: 100, + lines: 100, + }, + }, };