Skip to content

Commit

Permalink
chore: fix coverage reporting for tests (#115)
Browse files Browse the repository at this point in the history
* chore: fix coverage reporting for tests

tap is not reporting coverage, probably due to the switch to ESM.

Switch to c8.

* fixup! chore: fix coverage reporting for tests
  • Loading branch information
Trott committed Mar 31, 2023
1 parent 3472214 commit 964cfdc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
"type": "module",
"scripts": {
"pretest": "standard && check-pkg",
"test": "tap -j4 --no-check-coverage --cov test/**/*.js test/*.js",
"posttest": "tap --no-check-coverage --coverage-report=text-summary",
"test-ci": "npm run test -- --no-check-coverage --coverage-report=lcov"
"test": "c8 tap -j4 --no-coverage test/**/*.js test/*.js",
"test-ci": "npm run test && c8 report --reporter=lcov"
},
"dependencies": {
"chalk": "^5.2.0",
"gitlint-parser-node": "^1.1.0",
"nopt": "^7.0.0"
},
"devDependencies": {
"c8": "^7.13.0",
"check-pkg": "^2.1.1",
"standard": "^17.0.0",
"tap": "^16.3.4"
Expand Down

0 comments on commit 964cfdc

Please sign in to comment.