test: fix linter and create tests

This commit is contained in:
pespinel 2025-10-22 16:20:59 +02:00 committed by Jozef Izso
parent 828632acd0
commit 7148297f02
Failed to extract signature
2 changed files with 75 additions and 3 deletions

View file

@ -158,9 +158,7 @@ function getTestRunsReport(testRuns: TestRunResult[], options: ReportOptions): s
const totalFailed = testRuns.reduce((sum, tr) => sum + tr.failed, 0)
// Determine if report should be collapsed based on collapsed option
const shouldCollapse =
options.collapsed === 'always' ||
(options.collapsed === 'auto' && totalFailed === 0)
const shouldCollapse = options.collapsed === 'always' || (options.collapsed === 'auto' && totalFailed === 0)
if (shouldCollapse) {
sections.push(`<details><summary>Expand for details</summary>`)