(message: string, prefixes: readonly string[])
| 18 | type LaunchFailureTarget = 'simulator' | 'device' | 'macos'; |
| 19 | |
| 20 | function stripKnownPrefix(message: string, prefixes: readonly string[]): string { |
| 21 | for (const prefix of prefixes) { |
| 22 | if (message.startsWith(prefix)) { |
| 23 | return message.slice(prefix.length).trim(); |
| 24 | } |
| 25 | } |
| 26 | return message; |
| 27 | } |
| 28 | |
| 29 | function isMacLaunch(artifacts: LaunchResultArtifacts, target?: LaunchFailureTarget): boolean { |
| 30 | if (target) { |
no outgoing calls
no test coverage detected