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 06a48ad
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,13 +24,13 @@ jobs:
uses: greatwizard/coverage-diff-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
coverage-filename: coverage/cobertura-coverage.xml
allowed-to-fail: false
badge-enabled: true
badge-threshold-green: 90
badge-threshold-orange: 80
- name: Generate Changelog
run: git log --oneline $(git describe --tags --abbrev=0)..HEAD >> CHANGELOG.txt
if: ${{ startsWith(github.ref, 'refs/tags/') }}
- name: Release
uses: softprops/action-gh-release@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
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-summary"
],
"preset": "ts-jest",
"testEnvironment": "node",
"reporters": [
[
"github-actions",
{
"silent": false
}
],
"summary"
],
"moduleFileExtensions": [
"ts",
"js"
Expand Down

0 comments on commit 06a48ad

Please sign in to comment.