(name: string, ok: boolean, detail?: string)
| 71 | console.log(`\n▶ ${name}`); |
| 72 | } |
| 73 | export function check(name: string, ok: boolean, detail?: string) { |
| 74 | results.push({ scenario: currentScenario, name, ok, detail }); |
| 75 | console.log(` ${ok ? '✓' : '✗'} ${name}${detail && !ok ? ` — ${detail}` : ''}`); |
| 76 | } |
| 77 | /** Print the summary and return the number of failed checks. */ |
| 78 | export function summarize(): number { |
| 79 | const failed = results.filter((r) => !r.ok); |
no test coverage detected