Skip to content

Commit

Permalink
fix: move jest options to config file
Browse files Browse the repository at this point in the history
  • Loading branch information
sdobbert committed May 8, 2024
1 parent c7f42dd commit de9dbfa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: MishaKav/jest-coverage-comment@main
with:
hide-summary: true
coverage-summary-path: ./coverage/coverage-summary.json
coverage-summary-path: ./coverage/all/coverage-summary.json

- name: Update README with Coverage HTML
if: github.ref == 'refs/heads/main'
Expand Down
4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@ module.exports = {
reporters: [
'default',
'@casualbot/jest-sonar-reporter'
]
],
coverageReporters: ['json-summary'],
coverageDirectory: 'coverage/all'
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"prepare": "npm run husky",
"semantic-release": "npm run clean; npm run build; npx semantic-release",
"start": "webpack serve --config webpack.dev.js",
"test": "jest --collectCoverageFrom='['**/*.{ts,tsx,js,jsx}']' --coverage --coverageReporters 'json-summary' --coverageDirectory 'coverage/all'",
"test": "jest --coverage",
"tsc": "tsc -p tsconfig.build.json",
"typecheck": "tsc --noEmit -p tsconfig.json",
"watch:buildto": "node watchBuild.js"
Expand Down

0 comments on commit de9dbfa

Please sign in to comment.