Skip to content

Commit ba6400b

Browse files
committed
switch to c8 for better code coverage accuracy
1 parent 93de39e commit ba6400b

14 files changed

+196
-1676
lines changed

.c8rc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"src": ["src/lib"],
3+
"include": ["dist/src/lib/**/*.js"],
4+
"exclude": ["dist/src/lib/index.js"],
5+
"extension": [".js"],
6+
"reporter": ["lcovonly", "text"],
7+
"all": true
8+
}

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,8 @@ jobs:
3434
- run: npm run coverage
3535
- name: Upload coverage reports to Codecov
3636
uses: codecov/codecov-action@v6
37+
if: matrix.node-version == 24
3738
with:
3839
token: ${{ secrets.CODECOV_TOKEN }}
40+
files: ./coverage/lcov.info
41+
disable_search: true

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
.vscode
2-
.idea
32
node_modules/
43
dist/
54
mise.toml
65
/*.tgz
7-
/.nyc_output
86
/coverage
97
*.local.*

.mocharc.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"require": ["tsx"],
3-
"extension": ["ts"],
42
"reporter": "spec",
5-
"spec": ["test/**/*.ts"]
3+
"extension": ["js", "ts"]
64
}

codecov.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)