| 88 | } |
| 89 | |
| 90 | interface FakeOpts { |
| 91 | stdout?: string |
| 92 | stdoutFile?: string |
| 93 | stderr?: string |
| 94 | exitCode?: number |
| 95 | sleepMs?: number |
| 96 | versionExitCode?: number |
| 97 | /** Per-subcommand stdout overrides keyed by the subcommand name in argv. */ |
| 98 | bySubcommand?: Record<string, string> |
| 99 | } |
| 100 | |
| 101 | const FAKE_SCRIPT = `#!/bin/sh |
| 102 | ARGV_LOG=class="st">"__ARGV_LOG__" |
nothing calls this directly
no outgoing calls
no test coverage detected