(cmd: string, env: Record<string, string> = {})
| 11 | let tmpDir: string; |
| 12 | |
| 13 | function run(cmd: string, env: Record<string, string> = {}): string { |
| 14 | return execSync(cmd, { |
| 15 | cwd: ROOT, |
| 16 | env: { ...process.env, GSTACK_STATE_DIR: tmpDir, GSTACK_DIR: ROOT, ...env }, |
| 17 | encoding: 'utf-8', |
| 18 | timeout: 10000, |
| 19 | }).trim(); |
| 20 | } |
| 21 | |
| 22 | function setConfig(key: string, value: string) { |
| 23 | run(`${BIN}/gstack-config set ${key} ${value}`); |
no outgoing calls
no test coverage detected