Skip to content

Commit

Permalink
test: fix coverage reporter (#984)
Browse files Browse the repository at this point in the history
* test: fix coverage reporter

* fixup: coverage ci on v16 only

* fixup

* fixup
  • Loading branch information
ronag authored Aug 18, 2021
1 parent d684ce0 commit b7ee4b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 23 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,7 @@ jobs:
run: |
npm install
- name: Test Tap
run: |
npm run test:tap
- name: Test Jest
run: |
npm run test:jest
- name: Test node-fetch
run: |
npm run test:node-fetch
- name: Test Types
run: |
npm run test:typescript
- name: Coverage
- name: Test
run: |
npm run coverage:ci
Expand Down
2 changes: 1 addition & 1 deletion .taprc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ts: false
jsx: false
flow: false
coverage: true
coverage: false
expose-gc: true
timeout: 60
check-coverage: false
Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
"build:wasm": "node build/wasm.js --docker",
"lint": "standard | snazzy",
"lint:fix": "standard --fix | snazzy",
"test": "npm run test:tap && npm run test:node-fetch && npm run test:fetch && npm run test:jest",
"test": "npm run test:tap && npm run test:node-fetch && npm run test:fetch && npm run test:jest && tsd",
"test:node-fetch": "node scripts/verifyVersion.js 16 && mocha test/node-fetch || echo Skipping",
"test:fetch": "node scripts/verifyVersion.js 16 && tap test/fetch/*.js || echo Skipping",
"test:jest": "jest test/jest/test",
"test:tap": "tap test/*.js",
"test:tdd": "tap test/*.js -w",
"test:typescript": "tsd",
"coverage": "nyc npm run test",
"coverage:ci": "npm run coverage -- --reporter=lcovonly",
"coverage:ci": "nyc --reporter=lcov npm run test",
"bench": "concurrently -k -s first npm:bench:server npm:bench:run",
"bench:server": "node benchmarks/server.js",
"prebench:run": "node benchmarks/wait.js",
Expand Down Expand Up @@ -92,9 +92,6 @@
"lib/llhttp/utils.js"
]
},
"tap": {
"check-coverage": false
},
"tsd": {
"directory": "test/types",
"compilerOptions": {
Expand Down

0 comments on commit b7ee4b3

Please sign in to comment.