(...args: string[])
| 32 | }); |
| 33 | |
| 34 | function runDev(...args: string[]): { stdout: string; stderr: string; status: number } { |
| 35 | const res = spawnSync(BIN_DEV, args, { |
| 36 | env: { ...process.env, GSTACK_HOME: tmpHome }, |
| 37 | encoding: 'utf-8', |
| 38 | cwd: ROOT, |
| 39 | }); |
| 40 | return { |
| 41 | stdout: res.stdout ?? '', |
| 42 | stderr: res.stderr ?? '', |
| 43 | status: res.status ?? -1, |
| 44 | }; |
| 45 | } |
| 46 | |
| 47 | function logQuestion(payload: Record<string, unknown>): number { |
| 48 | const res = spawnSync(BIN_LOG, [JSON.stringify(payload)], { |
no test coverage detected