Skip to content

Commit

Permalink
fix: coverage report not correct
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-lebleu committed Feb 21, 2024
1 parent fc358a3 commit 27d8272
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
echo SMTP_PASSWORD = "${{ secrets.SMTP_PASSWORD }}" >> .env
echo SPARKPOST_API_KEY = "${{ secrets.SPARKPOST_API_KEY }}" >> .env
- name: Execute units tests
run: npm run ci:coverage
run: npm run ci:test
- name: Publish to coveralls.io
uses: coverallsapp/github-action@v1.1.2
with:
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@
"commitLimit": false
},
"scripts": {
"ci:coverage": "RUNNER=github nyc --reporter=lcov --report-dir=./reports/coverage npm-run-all -s test:*",
"ci:test": "RUNNER=github npm-run-all -s test:*",
"ci:test": "nyc --reporter=lcov --report-dir=./reports/coverage npm-run-all -s test:*",
"test": "nyc --reporter=html --report-dir=./reports/nyc-coverage npm-run-all -s test:*",
"test:unit": "./node_modules/.bin/mocha -r ts-node/register -r tsconfig-paths/register ./test/units/00-bootstrap.test.js --exit --reporter spec --timeout 5000 --env test",
"test:e2e": "./node_modules/.bin/mocha -r ts-node/register -r tsconfig-paths/register ./test/e2e/00-bootstrap.test.js --exit --reporter spec --timeout 5000 --env test",
"test:unit": "./node_modules/.bin/mocha ./test/units/00-bootstrap.test.js --exit --reporter spec --timeout 5000 --env test",
"test:e2e": "./node_modules/.bin/mocha ./test/e2e/00-bootstrap.test.js --exit --reporter spec --timeout 5000 --env test",
"doc:typedoc": "typedoc --name 'Cliam documentation' --defaultCategory 'Test' --categorizeByGroup true --out ./docs/typedoc ./src"
},
"dependencies": {
Expand Down

0 comments on commit 27d8272

Please sign in to comment.