Skip to content

Commit

Permalink
[Tests] run nyc on all tests; use tape runner
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Mar 22, 2021
1 parent 5aa26d7 commit 2f5fb08
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage/
13 changes: 13 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"prepublish": "not-in-publish || 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 @@ -41,6 +41,7 @@
"eslint": "^6.8.0",
"for-each": "^0.3.3",
"in-publish": "^2.0.1",
"nyc": "^10.3.2",
"object-inspect": "^1.7.0",
"object-is": "^1.0.2",
"safe-publish-latest": "^1.1.4",
Expand Down

0 comments on commit 2f5fb08

Please sign in to comment.