Skip to content

Commit

Permalink
chore: fix c8 configuration (#340)
Browse files Browse the repository at this point in the history
* chore: fix c8 configuration

* chore(ci): adjust coverage command in CI
  • Loading branch information
JKRhb committed Apr 23, 2022
1 parent 92fc20d commit 029033e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/npm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ jobs:
run: npm install

- name: Perform tests and generate coverage report
run: |
npm test
npm run coverage
run: npm run coverage

- name: Coveralls
uses: coverallsapp/github-action@master
Expand Down
4 changes: 0 additions & 4 deletions .nycrc.json

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"build": "tsc -b",
"pretest": "npm run build",
"prepublishOnly": "npm run build",
"test": "c8 mocha ./dist/test --exit",
"coverage": "c8 report --reporter=lcov --reporter=text-summary",
"test": "mocha ./dist/test --exit",
"coverage": "c8 -a --reporter=lcov --reporter=text --reporter=html npm run test",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},
Expand Down

0 comments on commit 029033e

Please sign in to comment.