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 Nov 30, 2020
1 parent 2d0cb9a commit 9c16a9a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintignore
@@ -0,0 +1 @@
coverage/
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"
]
}
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -7,7 +7,7 @@
"prepublish": "safe-publish-latest",
"lint": "eslint .",
"pretest": "npm run lint",
"tests-only": "node test",
"tests-only": "nyc tape 'test/**/*.js'",
"test": "npm run tests-only",
"posttest": "npx aud --production",
"version": "auto-changelog && git add CHANGELOG.md",
Expand Down Expand Up @@ -38,6 +38,7 @@
"auto-changelog": "^2.2.1",
"eslint": "^7.10.0",
"has-symbols": "^1.0.1",
"nyc": "^10.3.2",
"object-inspect": "^1.8.0",
"safe-publish-latest": "^1.1.4",
"tape": "^5.0.1"
Expand Down

0 comments on commit 9c16a9a

Please sign in to comment.