(stderr: string)
| 118 | } |
| 119 | |
| 120 | function firstStderrLine(stderr: string): string | null { |
| 121 | const skipPatterns = [ |
| 122 | /^an error was encountered processing the command/i, |
| 123 | /^underlying error\b/i, |
| 124 | /^simulator device failed to complete the requested operation/i, |
| 125 | ]; |
| 126 | |
| 127 | for (const rawLine of stderr.split('\n')) { |
| 128 | const line = rawLine.trim(); |
| 129 | if (!line) continue; |
| 130 | if (skipPatterns.some((pattern) => pattern.test(line))) continue; |
| 131 | return line.length > 200 ? `${line.slice(0, 200)}...` : line; |
| 132 | } |
| 133 | return null; |
| 134 | } |
| 135 | |
| 136 | function stripDiagnosticMeta( |
| 137 | details: Record<string, unknown> | undefined, |
no outgoing calls
no test coverage detected
searching dependent graphs…