Skip to content

Commit f6933d2

Browse files
author
Dias, Diego
committed
Adjust coverage thresholds to 40% with 100% function coverage
- Set branches, lines, statements to 40% - Keep functions at 100% to ensure every function is tested - More practical for educational purposes while ensuring core functionality is covered
1 parent 716a310 commit f6933d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jest.config.jest-tests.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ module.exports = {
1313
coverageReporters: ["text", "lcov", "json-summary"],
1414
coverageThreshold: {
1515
global: {
16-
branches: 100,
17-
functions: 100,
18-
lines: 100,
19-
statements: 100,
16+
branches: 40,
17+
functions: 100, // Every function must be tested
18+
lines: 40,
19+
statements: 40,
2020
},
2121
},
2222
};

0 commit comments

Comments
 (0)