From 4b3edf053f24fea5d25f7faec42e5a8422fd8504 Mon Sep 17 00:00:00 2001 From: Charlie Humphreys Date: Thu, 5 Jan 2023 23:30:20 -0600 Subject: [PATCH] add coverage thresholds and coverage command --- package.json | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b3e3c8574..75eac362c 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "circleci": "npm test && eslint **/*.{js,jsx} --max-warnings=0", "verify": "npm run lint && npm test", "test": "jest", + "test:coverage": "jest --coverage", "test:dev": "jest --verbose --watch", "test:basic": "jest tests/markdown/basic.test.js --verbose", "test:mustache-span": "jest tests/markdown/mustache-span.test.js --verbose", @@ -39,7 +40,21 @@ "mode_modules", "shared", "server" - ] + ], + "coverageThreshold" : { + "global" : { + "statements" : 25, + "branches" : 10, + "functions" : 22, + "lines" : 25 + }, + "server/homebrew.api.js" : { + "statements" : 71, + "branches" : 54, + "functions" : 66, + "lines" : 73 + } + } }, "babel": { "presets": [