(ms: number)
| 7 | } |
| 8 | |
| 9 | export function formatDuration(ms: number): string { |
| 10 | const seconds = ms / 1000; |
| 11 | if (seconds < 60) return `${seconds.toFixed(1)}s`; |
| 12 | const minutes = Math.floor(seconds / 60); |
| 13 | const remaining = seconds - minutes * 60; |
| 14 | return `${minutes}m ${remaining.toFixed(1)}s`; |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * Build the detail portion of the render-complete summary (everything after the |
no outgoing calls
no test coverage detected