Update all tests

This commit is contained in:
Michael Marcus 2025-03-28 21:27:01 -04:00 committed by Jozef Izso
parent 0f47a5bec1
commit f1fa471229
11 changed files with 6878 additions and 432 deletions

View file

@ -18,7 +18,7 @@ export interface ReportOptions {
reportTitle: string
}
const defaultOptions: ReportOptions = {
export const DEFAULT_OPTIONS: ReportOptions = {
listSuites: 'all',
listTests: 'all',
baseUrl: '',
@ -28,7 +28,7 @@ const defaultOptions: ReportOptions = {
reportTitle: ''
}
export function getReport(results: TestRunResult[], options: ReportOptions = defaultOptions): string {
export function getReport(results: TestRunResult[], options: ReportOptions = DEFAULT_OPTIONS): string {
core.info('Generating check run summary')
applySort(results)
@ -55,7 +55,7 @@ export function getReport(results: TestRunResult[], options: ReportOptions = def
return trimReport(lines, options)
}
function getMaxReportLength(options: ReportOptions = defaultOptions): number {
function getMaxReportLength(options: ReportOptions = DEFAULT_OPTIONS): number {
return options.useActionsSummary ? MAX_ACTIONS_SUMMARY_LENGTH : MAX_REPORT_LENGTH
}