(location: string | undefined)
| 49 | } |
| 50 | |
| 51 | function normalizeTestFailureLocation(location: string | undefined): string | null { |
| 52 | if (!location) { |
| 53 | return null; |
| 54 | } |
| 55 | |
| 56 | const match = location.match(/([^/]+:\d+(?::\d+)?)$/u); |
| 57 | return (match?.[1] ?? location).trim().toLowerCase(); |
| 58 | } |
| 59 | |
| 60 | function normalizeTestFailureMessage(message: string): string { |
| 61 | const lines = message |
no outgoing calls
no test coverage detected