(entry: ConsoleEntry)
| 101 | } |
| 102 | |
| 103 | function entryTimestamp(entry: ConsoleEntry): number { |
| 104 | return Date.parse(entry.endedAt ?? entry.startedAt ?? entry.timestamp) |
| 105 | } |
| 106 | |
| 107 | function shouldReplaceEntry(existing: ConsoleEntry, incoming: ConsoleEntry): boolean { |
| 108 | if (existing.isRunning && !incoming.isRunning) return true |
no test coverage detected