(suiteName?: string, testName?: string, durationMs?: number)
| 216 | } |
| 217 | |
| 218 | function applyFailureDuration(suiteName?: string, testName?: string, durationMs?: number): void { |
| 219 | const key = getFailureKey(suiteName, testName); |
| 220 | if (!key || durationMs === undefined) { |
| 221 | return; |
| 222 | } |
| 223 | |
| 224 | pendingFailureDurations.set(key, durationMs); |
| 225 | const pendingFailures = pendingFailureDiagnostics.get(key); |
| 226 | if (!pendingFailures) { |
| 227 | return; |
| 228 | } |
| 229 | |
| 230 | for (const failure of pendingFailures) { |
| 231 | emitFailureFragment({ ...failure, durationMs }); |
| 232 | } |
| 233 | pendingFailureDiagnostics.delete(key); |
| 234 | pendingFailureDurations.delete(key); |
| 235 | } |
| 236 | |
| 237 | function emitTestProgress(): void { |
| 238 | if (operation !== 'TEST') { |
no test coverage detected