Skip to content

Commit 9fe0d78

Browse files
committed
Add coverage
1 parent 2f449e3 commit 9fe0d78

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
node-version: ${{matrix.node}}
1414
- run: npm install
1515
- run: npm test
16+
- uses: codecov/codecov-action@v3
1617
strategy:
1718
matrix:
1819
node:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DS_Store
22
*.d.ts
33
*.log
4+
coverage/
45
node_modules/
56
yarn.lock

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"build": "tsc --build --clean && tsc --build && type-coverage",
1717
"format": "prettier . -w --loglevel warn && xo --fix",
1818
"test-api": "node --conditions development test.js",
19-
"test": "npm run build && npm run format && npm run test-api"
19+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
20+
"test": "npm run build && npm run format && npm run test-coverage"
2021
},
2122
"keywords": [
2223
"unist",
@@ -39,6 +40,7 @@
3940
"@types/lodash.iteratee": "^4.0.0",
4041
"@types/tape": "^5.0.0",
4142
"@types/unist": "^2.0.6",
43+
"c8": "^8.0.0",
4244
"mdast-util-from-markdown": "^1.0.0",
4345
"prettier": "^2.0.0",
4446
"tape": "^5.0.0",

0 commit comments

Comments
 (0)