(...args: string[])
| 27 | }); |
| 28 | |
| 29 | function run(...args: string[]): { stdout: string; stderr: string; status: number } { |
| 30 | const res = spawnSync(BIN, args, { |
| 31 | env: { ...process.env, GSTACK_HOME: tmpHome }, |
| 32 | encoding: 'utf-8', |
| 33 | cwd: ROOT, |
| 34 | }); |
| 35 | return { |
| 36 | stdout: res.stdout ?? '', |
| 37 | stderr: res.stderr ?? '', |
| 38 | status: res.status ?? -1, |
| 39 | }; |
| 40 | } |
| 41 | |
| 42 | // ----------------------------------------------------------------------- |
| 43 | // --check |
no test coverage detected