Skip to content

Commit 94afab0

Browse files
committedDec 15, 2020
Add test coverage thresholds.
1 parent d470fa1 commit 94afab0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎jest.config.js

+10
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,14 @@ module.exports = {
2525
// It is reflected in properties such as location.href.
2626
// @see: https://github.com/facebook/jest/issues/6769
2727
testURL: 'http://localhost/',
28+
29+
// @see: https://jestjs.io/docs/en/configuration#coveragethreshold-object
30+
coverageThreshold: {
31+
global: {
32+
statements: 100,
33+
branches: 95,
34+
functions: 100,
35+
lines: 100,
36+
},
37+
},
2838
};

0 commit comments

Comments
 (0)
Please sign in to comment.