Skip to content

Commit

Permalink
use c8 as code coverage tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Miniast committed Jun 22, 2024
1 parent e992d63 commit 6111a93
Show file tree
Hide file tree
Showing 5 changed files with 251 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.vscode
.idea
coverage

dist
node_modules
Expand Down
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.circleci
.vscode
.idea
.gitignore
.npmignore
coverage

node_modules
src
Expand Down
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"exports": "./dist/index.js",
"scripts": {
"build": "tsc",
"test": "ava"
"test": "ava",
"cover": "c8 ava"
},
"engines": {
"node": ">=18"
Expand Down Expand Up @@ -48,6 +49,7 @@
"@types/got": "^9.6.12",
"@types/node": "^20.14.7",
"ava": "^6.1.3",
"c8": "^10.1.2",
"eslint": "~9.4.0",
"globals": "^15.6.0",
"nock": "^13.5.4",
Expand All @@ -67,5 +69,13 @@
},
"failFast": true,
"verbose": true
},
"c8": {
"reporter": [
"lcov",
"html",
"text"
],
"clean": true
}
}
}
Loading

0 comments on commit 6111a93

Please sign in to comment.