Skip to content

Commit

Permalink
[Tests] switch to nyc for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed May 2, 2023
1 parent 407e79f commit 6e50781
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Coverage report
coverage
.nyc_output/

# Installed npm modules
node_modules
Expand Down
9 changes: 9 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"all": true,
"check-coverage": false,
"reporter": ["text-summary", "text", "html", "json"],
"exclude": [
"coverage",
"test"
]
}
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
"postlint": "es-shim-api --bound",
"pretest": "npm run lint",
"test": "npm run tests-only",
"tests-only": "tape 'tests/*.js'",
"cover": "istanbul cover --report html --verbose --dir coverage tape 'tests/*.js'"
"tests-only": "nyc tape 'tests/*.js'"
},
"dependencies": {
"call-bind": "^1.0.2",
Expand All @@ -48,7 +47,7 @@
"@ljharb/eslint-config": "^21.0.1",
"eslint": "=8.8.0",
"functions-have-names": "^1.2.3",
"istanbul": "^0.4.5",
"nyc": "^10.3.2",
"tape": "^5.6.3"
}
}

0 comments on commit 6e50781

Please # to comment.