(event: ReplayTestResult)
| 210 | } |
| 211 | |
| 212 | function formatReplayTestProgressStatusLabel(event: ReplayTestResult): string { |
| 213 | if (event.status === 'pass') { |
| 214 | return formatCliStatusMarker('pass', { |
| 215 | passFormat: event.attempt && event.attempt > 1 ? 'yellow' : 'green', |
| 216 | }); |
| 217 | } |
| 218 | return formatCliStatusMarker(event.status === 'fail' ? 'fail' : 'skip'); |
| 219 | } |
| 220 | |
| 221 | function colorizeProgressMarker(text: string, format: Parameters<typeof colorize>[1]): string { |
| 222 | return colorize(text, format, { validateStream: false }); |
no test coverage detected