Skip to content
This repository has been archived by the owner on Jul 14, 2019. It is now read-only.

Commit

Permalink
fix(tools): Exclude test files from coverage.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mikeal committed Jul 16, 2017
1 parent 5b53793 commit 05a4f17
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions package.json
Expand Up @@ -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": {
Expand All @@ -42,5 +42,13 @@
"repository": {
"type": "git",
"url": "https://github.com/mikeal/lucass.git"
},
"nyc": {
"exclude": [
"lib/test-basics.js",
"tests",
"tests/*",
"**/node_modules/**"
]
}
}

0 comments on commit 05a4f17

Please sign in to comment.