(name: string, fn: () => void)
| 12 | const failures: string[] = []; |
| 13 | |
| 14 | function test(name: string, fn: () => void): void { |
| 15 | try { |
| 16 | fn(); |
| 17 | passed += 1; |
| 18 | } catch (err) { |
| 19 | failures.push(`${name}: ${err instanceof Error ? err.message : String(err)}`); |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | const snap = (tools: SnapshotTool[]): ToolsSnapshot => ({ schemaVersion: '1', tools }); |
| 24 | const tool = (name: string, props: Record<string, string> = {}, required: string[] = []): SnapshotTool => ({ |
no test coverage detected