Skip to content

Commit 8299817

Browse files
authored
chore: Add test coverage thresholds (#594)
1 parent b768d98 commit 8299817

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.changeset/kind-showers-hope.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/data-schema/jest.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,13 @@ module.exports = {
88
"utils.ts",
99
"/fixtures/",
1010
"/MappedTypes/",
11-
]
11+
],
12+
coverageThreshold: {
13+
global: {
14+
branches: 72,
15+
functions: 86,
16+
lines: 85,
17+
statements: 85,
18+
},
19+
},
1220
};

packages/data-schema/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"docs:temp": "api-extractor run && api-documenter markdown --input-folder temp --output-folder temp/docs",
1919
"check:api": "rimraf temp && npm run docs:temp && tsx ../../scripts/shallow-dir-diff.ts docs temp/docs",
2020
"lint": "eslint .",
21-
"test": "jest"
21+
"test": "jest --coverage"
2222
},
2323
"exports": {
2424
".": {

0 commit comments

Comments
 (0)