Skip to content

Commit 2b7e743

Browse files
Add nyc dependency for coverage
1 parent 3c1e939 commit 2b7e743

File tree

3 files changed

+989
-385
lines changed

3 files changed

+989
-385
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,15 @@ jobs:
158158
run: ls -R .
159159
shell: bash
160160
- name: Test bindings
161-
run: yarn test --coverage
161+
run: yarn test
162162
- name: Upload coverage report
163163
if: ${{ matrix.settings.host == 'macos-latest' && matrix.node == '22' }}
164164
env:
165165
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
166166
uses: coverallsapp/[email protected]
167167
with:
168168
github-token: ${{ secrets.GITHUB_TOKEN }}
169-
path-to-lcov: node_modules/lcov-parse/coverage/lcov.info
169+
path-to-lcov: coverage/lcov.info
170170
parallel: true
171171

172172
test-linux-binding:

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"format:rs": "cargo fmt",
5151
"lint": "oxlint .",
5252
"prepublishOnly": "napi prepublish -t npm",
53-
"test": "ava",
53+
"test": "nyc --reporter=lcov ava",
5454
"version": "napi version",
5555
"prepare": "husky"
5656
},
@@ -63,7 +63,6 @@
6363
"@tybys/wasm-util": "^0.10.0",
6464
"ava": "^6.4.1",
6565
"chalk": "^5.4.1",
66-
"coveralls": "^3.1.1",
6766
"husky": "^9.1.7",
6867
"lint-staged": "^16.1.2",
6968
"npm-run-all2": "^8.0.4",
@@ -101,5 +100,8 @@
101100
"singleQuote": true,
102101
"arrowParens": "always"
103102
},
104-
"packageManager": "[email protected]"
103+
"packageManager": "[email protected]",
104+
"dependencies": {
105+
"nyc": "^17.1.0"
106+
}
105107
}

0 commit comments

Comments
 (0)