Skip to content

Commit 49a0d8c

Browse files
committed
Add basic code coverage requirements
1 parent 0512673 commit 49a0d8c

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/node_modules/
22

33
/dist/
4+
5+
/coverage/

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/coverage/

jest.config.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
module.exports = {
2+
collectCoverage: true,
3+
coverageThreshold: {
4+
global: {
5+
branches: 50,
6+
functions: 100,
7+
lines: 50,
8+
},
9+
},
210
errorOnDeprecated: true,
311
preset: "ts-jest",
412
resetMocks: true,
513
testEnvironment: "node",
6-
testPathIgnorePatterns: ["<rootDir>/node_modules/", "<rootDir>/dist/"],
14+
testRegex: "/test/.*\\.test\\.[jt]s",
715
};

0 commit comments

Comments
 (0)