MCPcopy Index your code
hub / github.com/angular/angular-cli / killAllProcesses

Function killAllProcesses

tests/e2e/utils/process.ts:285–298  ·  view source on GitHub ↗
(signal: NodeJS.Signals = 'SIGTERM')

Source from the content-addressed store, hash-verified

283 * Kills all tracked processes
284 */
285export async function killAllProcesses(signal: NodeJS.Signals = 'SIGTERM'): Promise<void> {
286 const processesToKill: Promise<void>[] = [];
287
288 while (_processes.length) {
289 const childProc = _processes.pop();
290 if (!childProc || childProc.pid === undefined || childProc.killed) {
291 continue;
292 }
293
294 processesToKill.push(killProcess(childProc.pid, signal));
295 }
296
297 await Promise.all(processesToKill);
298}
299
300export function exec(cmd: string, ...args: string[]) {
301 return _exec({}, cmd, args);

Callers 6

executeBrowserTestFunction · 0.90
test_process.tsFile · 0.90
serve.tsFile · 0.90

Calls 3

killProcessFunction · 0.85
popMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected