From c21c0b1aa278d7dc5519f1e1896f91b2c96e6be9 Mon Sep 17 00:00:00 2001 From: grantbirki Date: Thu, 13 Apr 2023 23:11:46 +0100 Subject: [PATCH] enforce 100% test coverage --- package.json | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8994364..059e972 100644 --- a/package.json +++ b/package.json @@ -42,5 +42,21 @@ "bugs": { "url": "https://github.com/actions/deploy-pages/issues" }, - "homepage": "https://github.com/actions/deploy-pages#readme" + "homepage": "https://github.com/actions/deploy-pages#readme", + "jest": { + "coverageReporters": [ + "json-summary", + "text", + "lcov" + ], + "collectCoverage": true, + "collectCoverageFrom": [ + "./src/**" + ], + "coverageThreshold": { + "global": { + "lines": 100 + } + } + } }