(child: child_process.ChildProcess | undefined)
| 77 | }; |
| 78 | |
| 79 | const stopWebServer = (child: child_process.ChildProcess | undefined) => { |
| 80 | if (!child || child.killed) { |
| 81 | return; |
| 82 | } |
| 83 | |
| 84 | if (process.platform !== 'win32' && child.pid !== undefined) { |
| 85 | try { |
| 86 | process.kill(-child.pid); |
| 87 | return; |
| 88 | } catch {} |
| 89 | } |
| 90 | |
| 91 | child.kill(); |
| 92 | }; |
| 93 | |
| 94 | const startWebServer = async (command: string, url: string, cwd: string) => { |
| 95 | const output: string[] = []; |
no outgoing calls
no test coverage detected
searching dependent graphs…