(job)
| 618 | return await new Promise((resolve) => { |
| 619 | const child = spawn(command, args, { cwd, shell: false, windowsHide: true }); |
| 620 | const stdout = []; |
| 621 | const stderr = []; |
| 622 | const timer = setTimeout(() => { |
| 623 | try { |
| 624 | child.kill("SIGTERM"); |
| 625 | } catch {} |
| 626 | }, timeoutMs); |
| 627 | child.stdout?.on("data", (data) => stdout.push(Buffer.from(data))); |
| 628 | child.stderr?.on("data", (data) => stderr.push(Buffer.from(data))); |
| 629 | child.on("error", (error) => { |
| 630 | clearTimeout(timer); |
no test coverage detected