Skip to content

Commit

Permalink
Fix coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniovazquezblanco committed Jun 24, 2024
1 parent b76ff3d commit e2c70df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
- name: Upload coverage
uses: ArtiomTr/[email protected]
continue-on-error: true
with:
test-script: npm test

- name: Check build status
run: git diff --exit-code --quiet && echo "No changes were found :)" || { git --no-pager diff; echo -e "Changes found after build.\nPlease run \"npm run build\" and commit the changes in the dist directory."; exit 1; }
Expand Down

2 comments on commit e2c70df

@github-actions
Copy link

Choose a reason for hiding this comment

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

Coverage report

St.❔
Category Percentage Covered / Total
🟒 Statements 91.16% 134/147
🟑 Branches 78.26% 18/23
🟒 Functions 100% 10/10
🟒 Lines 91.16% 134/147

Test suite run success

6 tests passing in 2 suites.

Report generated by πŸ§ͺjest coverage report action from e2c70df

@github-actions
Copy link

Choose a reason for hiding this comment

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

Coverage report

Caution

An unexpected error occurred. For more details, check console

TypeError: Cannot read properties of undefined (reading 'totalStatements')
St.❔
Category Percentage Covered / Total
🟒 Statements 91.16% 134/147
🟑 Branches 78.26% 18/23
🟒 Functions 100% 10/10
🟒 Lines 91.16% 134/147

Test suite run success

6 tests passing in 2 suites.

Report generated by πŸ§ͺjest coverage report action from e2c70df

Please sign in to comment.