Skip to content

Commit 0a2b525

Browse files
szmarczakKhafraDev
authored andcommitted
Fix coverage reports (nodejs#972)
1 parent 0c88592 commit 0a2b525

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@
3333
"build:wasm": "node build/wasm.js --docker",
3434
"lint": "standard | snazzy",
3535
"lint:fix": "standard --fix | snazzy",
36-
"test": "tap test/*.js --no-coverage && mocha test/node-fetch && jest test/jest/test",
36+
"test": "npm run test:tap && npm run test:node-fetch && npm run test:jest",
3737
"test:node-fetch": "node scripts/test-node-fetch.js 16 && mocha test/node-fetch || echo Skipping",
3838
"test:jest": "jest test/jest/test",
39-
"test:tap": "tap test/*.js --no-coverage ",
40-
"test:tdd": "tap test/*.js -w --no-coverage-report",
39+
"test:tap": "tap test/*.js",
40+
"test:tdd": "tap test/*.js -w",
4141
"test:typescript": "tsd",
42-
"coverage": "standard | snazzy && tap test/*.js",
43-
"coverage:ci": "npm run coverage -- --coverage-report=lcovonly",
42+
"coverage": "nyc npm run test",
43+
"coverage:ci": "npm run coverage -- --reporter=lcovonly",
4444
"bench": "concurrently -k -s first npm:bench:server npm:bench:run",
4545
"bench:server": "node benchmarks/server.js",
4646
"prebench:run": "node benchmarks/wait.js",
@@ -91,6 +91,9 @@
9191
"lib/llhttp/utils.js"
9292
]
9393
},
94+
"tap": {
95+
"check-coverage": false
96+
},
9497
"tsd": {
9598
"directory": "test/types",
9699
"compilerOptions": {

0 commit comments

Comments
 (0)