Skip to content

Commit

Permalink
chore: add c8 config
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j committed Mar 3, 2024
1 parent fabd084 commit d416ce4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"reporter": ["lcov"],
"exclude": [
"lib/test"
]
}
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
run: npm ci
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Test
run: npm run test
- name: Report Test Coverage
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"lint:format": "prettier --check src",
"format": "prettier --write src",
"lint": "npm run lint:format && eslint src",
"test": "c8 --reporter=lcov node --test",
"test": "c8 node --test lib/test/**/*_test.js",
"prepare": "tshy"
},
"repository": {
Expand Down

0 comments on commit d416ce4

Please sign in to comment.