Skip to content

Commit

Permalink
change jest coverage config
Browse files Browse the repository at this point in the history
  • Loading branch information
Freezystem committed Dec 6, 2023
1 parent 53687b4 commit 70d8403
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: greatwizard/coverage-diff-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
coverage-filename: coverage/cobertura-coverage.xml
coverage-filename: coverage/cobertura-final.json
allowed-to-fail: false
badge-enabled: true
badge-threshold-green: 90
Expand Down
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"homepage": "https://github.com/Freezystem/mjml-bar-chart",
"license": "MIT",
"devDependencies": {
"@types/jest": "^29.5.10",
"@types/jest": "^29.5.11",
"@types/mjml": "^4.7.4",
"@types/mjml-core": "^4.7.4",
"@types/mjml-validator": "^4.13.4",
Expand All @@ -54,7 +54,7 @@
"npm-check": "^6.0.1",
"prettier": "^3.1.0",
"ts-jest": "^29.1.1",
"typescript": "^5.3.2"
"typescript": "^5.3.3"
},
"dependencies": {
"mjml": "^4.14.1",
Expand All @@ -67,10 +67,19 @@
"coverageDirectory": "<rootDir>/coverage",
"coverageReporters": [
"text-summary",
"cobertura"
"json"
],
"preset": "ts-jest",
"testEnvironment": "node",
"reporters": [
[
"github-actions",
{
"silent": false
}
],
"summary"
],
"moduleFileExtensions": [
"ts",
"js"
Expand Down

0 comments on commit 70d8403

Please sign in to comment.