Skip to content

Commit

Permalink
[Tests] add nyc for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Apr 20, 2023
1 parent 2962694 commit 7e3f525
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
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 @@ -15,7 +15,7 @@
"prepublish": "not-in-publish || npm run prepublishOnly",
"prepublishOnly": "safe-publish-latest",
"pretest": "npm run lint",
"tests-only": "tape test",
"tests-only": "nyc tape test",
"test": "npm run tests-only",
"posttest": "aud --production"
},
Expand Down Expand Up @@ -55,6 +55,7 @@
"for-each": "^0.3.3",
"in-publish": "^2.0.1",
"npmignore": "^0.3.0",
"nyc": "^10.3.2",
"object-inspect": "^1.12.2",
"safe-publish-latest": "^2.0.0",
"tape": "^5.6.1"
Expand Down

0 comments on commit 7e3f525

Please sign in to comment.