Skip to content

Commit

Permalink
Track coverage using C8 (#96)
Browse files Browse the repository at this point in the history
* track coverage using c8

* Fix: tests runs twice
  • Loading branch information
erikyo authored May 12, 2024
1 parent c40a44c commit f360d08
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 @@ -30,4 +30,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",
"prepublishOnly": "npm i && tsc && npm run lint && npm run test"
Expand All @@ -44,7 +45,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 f360d08

Please sign in to comment.