Skip to content

Commit

Permalink
- refine styling of summary tables
Browse files Browse the repository at this point in the history
  - FIX #1262
  • Loading branch information
mikepenz committed Dec 13, 2024
1 parent 3e3f750 commit e257388
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
18 changes: 13 additions & 5 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ export function buildSummaryTables(
const hasPassed = testResults.some(testResult => testResult.passed > 0)
const hasSkipped = testResults.some(testResult => testResult.skipped > 0)
const hasFailed = testResults.some(testResult => testResult.failed > 0)
const hasTests = testResults.some(testResult => testResult.totalCount > 0)

const passedHeader = hasPassed ? (hasFailed ? 'Passed ☑️' : 'Passed ✅') : 'Passed'
const passedHeader = hasTests ? (hasPassed ? (hasFailed ? 'Passed ☑️' : 'Passed ✅') : 'Passed') : 'Passed ❌️'
const skippedHeader = hasSkipped ? 'Skipped ⚠️' : 'Skipped'
const failedHeader = hasFailed ? 'Failed ❌️' : 'Failed'

Expand Down

0 comments on commit e257388

Please sign in to comment.