Skip to content

Commit

Permalink
test: added test coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
GiovanniCardamone committed Aug 19, 2021
1 parent 59da132 commit fad4ed5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- run: npm run build

# Run Tests
- run: npm test
- run: npm test:coverage

# Report Coverage
- name: Coveralls GitHub Action
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"build": "tsc",
"build:watch": "tsc --watch",
"lint": "eslint .",
"test": "tap --ts --node-arg=--require=ts-node/register tests/**/*.test.ts"
"test": "tap --ts --node-arg=--require=ts-node/register tests/**/*.test.ts",
"test:coverage": "tap --ts --node-arg=--require=ts-node/register --cov --coverage-report=lcovonly tests/**/*.test.ts"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit fad4ed5

Please sign in to comment.