Add unit tests to better test changes to output in the future

This commit is contained in:
Connor Vidlock 2024-01-30 10:01:50 -06:00
parent e94b0959b2
commit b96bed2d8a
No known key found for this signature in database
GPG key ID: BADEF4A267C14600
9 changed files with 3420 additions and 7 deletions

View file

@ -190,12 +190,7 @@ function getSuitesReport(tr: TestRunResult, runIndex: number, options: ReportOpt
const tsNameLink = skipLink ? tsName : link(tsName, tsAddr)
const passed = s.passed > 0 ? `${s.passed}${Icon.success}` : ''
const failed = s.failed > 0 ? `${s.failed}${Icon.fail}` : ''
let skipped
if (options.listTests === 'non-skipped') {
return [tsNameLink, passed, failed, '', tsTime]
} else {
skipped = s.skipped > 0 ? `${s.skipped}${Icon.skip}` : ''
}
const skipped = s.skipped > 0 ? `${s.skipped}${Icon.skip}` : ''
return [tsNameLink, passed, failed, skipped, tsTime]
})
)