(
command: string,
opts?: ProcessOptions,
)
| 193 | } |
| 194 | |
| 195 | private async exec( |
| 196 | command: string, |
| 197 | opts?: ProcessOptions, |
| 198 | ): Promise<ExecResult> { |
| 199 | const result = await this.sandbox.exec(command, { |
| 200 | ...(opts?.cwd ? { cwd: this.abs(opts.cwd) } : { cwd: this.workdir }), |
| 201 | ...(opts?.env ? { env: opts.env } : {}), |
| 202 | }) |
| 203 | return { |
| 204 | stdout: result.stdout, |
| 205 | stderr: result.stderr, |
| 206 | exitCode: result.exitCode, |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | private spawnProcess( |
| 211 | command: string, |
no test coverage detected