( value: unknown, )
| 325 | } |
| 326 | |
| 327 | function isDiagnosticTestFailure( |
| 328 | value: unknown, |
| 329 | ): value is { suite?: unknown; test: string; message: string; location: string } { |
| 330 | return ( |
| 331 | isRecord(value) && |
| 332 | typeof value.test === 'string' && |
| 333 | typeof value.message === 'string' && |
| 334 | typeof value.location === 'string' |
| 335 | ); |
| 336 | } |
| 337 | |
| 338 | function normalizeDiagnosticTestFailure(item: unknown): unknown { |
| 339 | if (!isDiagnosticTestFailure(item)) { |
no test coverage detected