Skip to content

Commit

Permalink
[FSSDK-10437] jest coverage report job addition (#281)
Browse files Browse the repository at this point in the history
* [FSSDK-10437] jest coverage report job addition

* [FSSDK-10437] local script addition

* [FSSDK-10437] job name and title adjustment

* [FSSDK-10437] package manager & pre-requisite addition
  • Loading branch information
junaed-optimizely authored Sep 10, 2024
1 parent 5daff74 commit 80e4d2c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ jobs:
run: yarn install
- name: Run tests
run: yarn test

coverage:
name: Jest Coverage Report
runs-on: ubuntu-latest
needs: [ unitTests ]
steps:
- uses: actions/checkout@v3
- uses: ArtiomTr/jest-coverage-report-action@v2
with:
custom-title: 'Jest Coverage Report'
package-manager: 'yarn'

integration_tests:
name: Run integration tests
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"build:win": "(if exist dist rd /s/q dist) && node ./scripts/winbuild.js",
"lint": "tsc --noEmit && eslint 'src/**/*.{js,ts,tsx}' --quiet --fix",
"test": "jest --silent",
"test-coverage": "jest --coverage --coverageReporters=\"text-summary\" --silent",
"prepublishOnly": "npm run test && npm run build",
"prepare": "npm run build && husky install"
},
Expand Down

1 comment on commit 80e4d2c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jest Coverage Report

St.
Category Percentage Covered / Total
🟢 Statements 98.95% 847/856
🟢 Branches 91.64% 340/371
🟢 Functions 97.52% 157/161
🟢 Lines 99.09% 765/772

Test suite run success

258 tests passing in 10 suites.

Report generated by 🧪jest coverage report action from 80e4d2c

Please sign in to comment.