From 05a4f17da0356d3a6b86eaf919c0e64e3bc3071c Mon Sep 17 00:00:00 2001 From: mikeal Date: Sun, 16 Jul 2017 10:52:38 -0700 Subject: [PATCH] fix(tools): Exclude test files from coverage. Because our main test file is in a lib we need to exclude it. Once you set a custom exclude you have to add back in all the nyc defaults as well. --- package.json | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 228f92f..9b25daf 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,8 @@ "cracks": "^3.1.2", "cz-conventional-changelog": "^2.0.0", "husky": "^0.14.3", - "validate-commit-msg": "^2.12.2", - "semantic-release": "^6.3.6" + "semantic-release": "^6.3.6", + "validate-commit-msg": "^2.12.2" }, "config": { "commitizen": { @@ -42,5 +42,13 @@ "repository": { "type": "git", "url": "https://github.com/mikeal/lucass.git" + }, + "nyc": { + "exclude": [ + "lib/test-basics.js", + "tests", + "tests/*", + "**/node_modules/**" + ] } }