Skip to content

Commit 3714496

Browse files
committed
Add jest coverage requirements
1 parent 2058391 commit 3714496

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

jest.config.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,14 @@
22
module.exports = {
33
preset: 'ts-jest',
44
testEnvironment: 'node',
5-
};
5+
collectCoverage: true,
6+
collectCoverageFrom: ["./src/**"],
7+
coverageThreshold: {
8+
global: {
9+
lines: 100,
10+
branches: 100,
11+
functions: 100,
12+
statements: -1,
13+
},
14+
},
15+
};

0 commit comments

Comments
 (0)