From 95b5475991a1cd245c5051a9d17205eb03567f15 Mon Sep 17 00:00:00 2001 From: sveisvei Date: Sun, 13 Nov 2016 21:06:28 +0100 Subject: [PATCH] improve nyc to add all files in lib to coverage --- package.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package.json b/package.json index 3c76a6ddac..1264140dad 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,13 @@ "test:coverage": "nyc npm run test", "test:coverage-report": "nyc report --reporter=text-lcov | coveralls" }, + "nyc": { + "all": true, + "include": [ + "bin/**/*.js", + "lib/**/*.js" + ] + }, "dependencies": { "body-parser": "1.15.2", "commander": "^2.9.0",