Skip to content

Commit e257388

Browse files
committed
- refine styling of summary tables
- FIX #1262
1 parent 3e3f750 commit e257388

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

dist/index.js

+13-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/table.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ export function buildSummaryTables(
1313
const hasPassed = testResults.some(testResult => testResult.passed > 0)
1414
const hasSkipped = testResults.some(testResult => testResult.skipped > 0)
1515
const hasFailed = testResults.some(testResult => testResult.failed > 0)
16+
const hasTests = testResults.some(testResult => testResult.totalCount > 0)
1617

17-
const passedHeader = hasPassed ? (hasFailed ? 'Passed ☑️' : 'Passed ✅') : 'Passed'
18+
const passedHeader = hasTests ? (hasPassed ? (hasFailed ? 'Passed ☑️' : 'Passed ✅') : 'Passed') : 'Passed ❌️'
1819
const skippedHeader = hasSkipped ? 'Skipped ⚠️' : 'Skipped'
1920
const failedHeader = hasFailed ? 'Failed ❌️' : 'Failed'
2021

0 commit comments

Comments
 (0)