mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-01 02:45:22 -08:00
test: fix linter and create tests
This commit is contained in:
@@ -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>`)
|
||||
|
||||
Reference in New Issue
Block a user