Skip to content

Commit

Permalink
[Tests] run nyc on all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 2, 2021
1 parent 6d72960 commit 5ec21aa
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintignore
@@ -0,0 +1 @@
coverage/
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -5,3 +5,7 @@
# Only apps should have lockfiles
yarn.lock
package-lock.json

# coverage data
coverage/
.nyc_output/
13 changes: 13 additions & 0 deletions .nycrc
@@ -0,0 +1,13 @@
{
"all": true,
"check-coverage": false,
"reporter": ["text-summary", "text", "html", "json"],
"lines": 86,
"statements": 85.93,
"functions": 82.43,
"branches": 76.06,
"exclude": [
"coverage",
"test"
]
}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -55,7 +55,7 @@
"lint": "eslint . bin/*",
"pretest": "npm run lint",
"test": "npm run tests-only",
"tests-only": "tap test/*.js"
"tests-only": "nyc tap test/*.js"
},
"testling": {
"files": "test/browser/*.js",
Expand Down

0 comments on commit 5ec21aa

Please sign in to comment.