Skip to content

Commit f360d08

Browse files
authored
Track coverage using C8 (#96)
* track coverage using c8 * Fix: tests runs twice
1 parent c40a44c commit f360d08

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
with:
3131
node-version: ${{ matrix.node-version }}
3232
- run: npm install
33-
- run: npm test
33+
- run: npm run test:coverage

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"lint": "eslint src/*.js test/*.js",
2222
"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",
2323
"test": "mocha",
24+
"test:coverage": "npx c8 --check-coverage npm run test",
2425
"preversion": "npm run lint && npm test",
2526
"postversion": "git push && git push --tags",
2627
"prepublishOnly": "npm i && tsc && npm run lint && npm run test"
@@ -44,7 +45,7 @@
4445
"eslint-plugin-import": "^2.29.1",
4546
"eslint-plugin-n": "^16.6.2",
4647
"eslint-plugin-promise": "^6.1.1",
47-
"mocha": "^10.3.0",
48+
"mocha": "^10.4.0",
4849
"typescript": "^5.4.5"
4950
},
5051
"keywords": [

0 commit comments

Comments
 (0)