(
event: ReplayTestResult | ReplayTestStep,
options: { useColor?: boolean } = {},
)
| 223 | } |
| 224 | |
| 225 | function formatReplayTestProgressShardSuffix( |
| 226 | event: ReplayTestResult | ReplayTestStep, |
| 227 | options: { useColor?: boolean } = {}, |
| 228 | ): string { |
| 229 | if (typeof event.shardIndex !== 'number') return ''; |
| 230 | const shardCount = typeof event.shardCount === 'number' ? event.shardCount : '?'; |
| 231 | const device = replayTestProgressShardDeviceName(event); |
| 232 | const suffix = ` [${event.shardIndex + 1}/${shardCount}${device ? ` ${device}` : ''}]`; |
| 233 | return options.useColor ? colorizeProgressMarker(suffix, 'dim') : suffix; |
| 234 | } |
| 235 | |
| 236 | function replayTestProgressShardDeviceName( |
| 237 | event: ReplayTestResult | ReplayTestStep, |
no test coverage detected