(event: ReplayTestResult)
| 259 | } |
| 260 | |
| 261 | function replayTestCompletionProgressKey(event: ReplayTestResult): string { |
| 262 | const shard = typeof event.shardIndex === 'number' ? event.shardIndex : ''; |
| 263 | return [event.status, event.index, event.total, event.file, event.title ?? '', shard].join('\0'); |
| 264 | } |
| 265 | |
| 266 | function clearLinePrefix(text: string): string { |
| 267 | return `\r\x1B[2K${text}`; |