(cp: ChildProcess)
| 27 | }; |
| 28 | |
| 29 | export const stopWorkspaceProxy = async (cp: ChildProcess) => { |
| 30 | exec(`kill ${cp.pid}`, (error) => { |
| 31 | if (error) { |
| 32 | throw new Error(`exec error: ${JSON.stringify(error)}`); |
| 33 | } |
| 34 | }); |
| 35 | await waitUntilUrlIsNotResponding(`http://127.0.0.1:${workspaceProxyPort}`); |
| 36 | }; |
no test coverage detected