Skip to content

Commit 964cfdc

Browse files
authored
chore: fix coverage reporting for tests (#115)
* 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
1 parent 3472214 commit 964cfdc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
"type": "module",
77
"scripts": {
88
"pretest": "standard && check-pkg",
9-
"test": "tap -j4 --no-check-coverage --cov test/**/*.js test/*.js",
10-
"posttest": "tap --no-check-coverage --coverage-report=text-summary",
11-
"test-ci": "npm run test -- --no-check-coverage --coverage-report=lcov"
9+
"test": "c8 tap -j4 --no-coverage test/**/*.js test/*.js",
10+
"test-ci": "npm run test && c8 report --reporter=lcov"
1211
},
1312
"dependencies": {
1413
"chalk": "^5.2.0",
1514
"gitlint-parser-node": "^1.1.0",
1615
"nopt": "^7.0.0"
1716
},
1817
"devDependencies": {
18+
"c8": "^7.13.0",
1919
"check-pkg": "^2.1.1",
2020
"standard": "^17.0.0",
2121
"tap": "^16.3.4"

0 commit comments

Comments
 (0)