(args: string[])
| 69 | } |
| 70 | |
| 71 | function runCli(args: string[]): CliResult { |
| 72 | const result = spawnSync('node', [BIN_PATH, ...args], { |
| 73 | encoding: 'utf8', |
| 74 | env: { ...process.env, FORCE_COLOR: '0', NO_COLOR: '1' }, |
| 75 | }); |
| 76 | return { |
| 77 | status: result.status ?? -1, |
| 78 | stdout: result.stdout ?? '', |
| 79 | stderr: result.stderr ?? '', |
| 80 | }; |
| 81 | } |
| 82 | |
| 83 | // --------------------------------------------------------------------------- |
| 84 | // 1. Fresh install — table-driven over all TARGETS |
no outgoing calls
no test coverage detected