(name: string)
| 67 | let currentScenario = 'setup'; |
| 68 | |
| 69 | export function scenario(name: string) { |
| 70 | currentScenario = name; |
| 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}` : ''}`); |
no test coverage detected