also looking at this
fix(mobile-e2e): launch iOS apps without a pty, so a cold simulator cannot eat the budget
#212
5 files
+74
-23
| @@ -10,6 +10,8 @@ export interface CommandOptions { | ||
| 10 | 10 | /** Record the failure and carry on, for teardown steps whose failure is not the story. */ |
| 11 | 11 | allowFailure?: boolean |
| 12 | 12 | stdin?: string |
| 13 | /** Added to the inherited environment, not a replacement for it. */ | |
| 14 | env?: Record<string, string> | |
| 13 | 15 | /** |
| 14 | 16 | * Write raw stdout bytes here instead of returning them as text. |
| 15 | 17 | * |
| @@ -36,6 +38,7 @@ export interface CommandResult { | ||
| 36 | 38 | export async function command(argv: string[], options: CommandOptions = {}): Promise<CommandResult> { |
| 37 | 39 | const spawned = Bun.spawn(argv, { |
| 38 | 40 | cwd: options.cwd, |
| 41 | env: options.env ? { ...process.env, ...options.env } : undefined, | |
| 39 | 42 | stdin: options.stdin === undefined ? 'ignore' : new TextEncoder().encode(options.stdin), |
| 40 | 43 | stdout: 'pipe', |
| 41 | 44 | stderr: 'pipe', |