diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9056d3..017359e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,4 +21,4 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm install - - run: npm test + - run: npm run test:coverage diff --git a/package.json b/package.json index e0115d5..95e31db 100644 --- a/package.json +++ b/package.json @@ -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" @@ -38,15 +39,13 @@ "@types/content-type": "^1.1.8", "@types/mocha": "latest", "@types/readable-stream": "^4.0.11", - "@typescript-eslint/eslint-plugin": "^6.18.1", - "@typescript-eslint/parser": "^6.14.0", "chai": "^5.0.3", "eslint": "^8.56.0", "eslint-config-standard": "^17.1.0", "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": [