Skip to content

Commit 0626ad6

Browse files
committed
js unit test: set coverage threshold
1 parent 1c907ad commit 0626ad6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/unit/jest.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ export default {
1010
coveragePathIgnorePatterns: [
1111
".test.data."
1212
],
13+
coverageThreshold: {
14+
global: {
15+
branches: 100,
16+
functions: 100,
17+
lines: 100,
18+
statements: 100
19+
}
20+
},
1321
testEnvironment: 'jest-environment-node',
1422
testRegex: "(test/unit/.*(\\.|/)(test|spec))\\.(jsx?|js?|tsx?|ts?)$",
1523
transform: {},

0 commit comments

Comments
 (0)