Skip to content

Commit

Permalink
track coverage using c8
Browse files Browse the repository at this point in the history
  • Loading branch information
erikyo committed May 11, 2024
1 parent 2f94ed7 commit 8e60e6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
- run: npm run test:coverage
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"lint": "eslint src/*.js test/*.js",
"test-generate-mo": "msgfmt test/fixtures/latin13.po -o test/fixtures/latin13.mo & msgfmt test/fixtures/utf8.po -o test/fixtures/utf8.mo & msgfmt test/fixtures/obsolete.po -o test/fixtures/obsolete.mo",
"test": "mocha",
"test:coverage": "npx c8 --check-coverage npm run test",
"preversion": "npm run lint && npm test",
"postversion": "git push && git push --tags",
"prepublish": "tsc && npm run lint && npm run test"
Expand All @@ -46,7 +47,7 @@
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.1.1",
"mocha": "^10.3.0",
"mocha": "^10.4.0",
"typescript": "^5.4.5"
},
"keywords": [
Expand Down

0 comments on commit 8e60e6f

Please sign in to comment.