From fb0084a78535bfea8d0087c0870e7e3614a2cbe5 Mon Sep 17 00:00:00 2001 From: Jaco Koster Date: Mon, 25 Jun 2018 22:49:15 +0200 Subject: [PATCH] Make code-coverage mandatory when running tests (#495) * Made code-coverage mandatory when running the tests. * Missed the trailing-comma... --- package.json | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d7e09f7..84488f1 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,24 @@ "version": "8.3.0", "description": "JSON Web Token implementation (symmetric and asymmetric)", "main": "index.js", + "nyc": { + "check-coverage": true, + "lines": 95, + "statements": 95, + "functions": 100, + "branches": 95, + "exclude": [ + "./test/**" + ], + "reporter": [ + "json", + "lcov", + "text-summary" + ] + }, "scripts": { "lint": "eslint .", - "test": "npm run lint && nyc --reporter=html --reporter=text mocha && nsp check && cost-of-modules" + "test": "npm run lint && nyc mocha && nsp check && cost-of-modules" }, "repository": { "type": "git",