(signal: string)
| 82 | let completed: Awaited<ReturnType<typeof runSmokeProtocol>> | undefined; |
| 83 | let interrupted: Error | undefined; |
| 84 | const interrupt = (signal: string) => { |
| 85 | interrupted ??= new Error(`Smoke interrupted by ${signal}`); |
| 86 | if (stream && stream.exitCode === null && stream.signalCode === null) stream.kill("SIGTERM"); |
| 87 | }; |
| 88 | const onInterrupt = () => interrupt("SIGINT"); |
| 89 | const onTerminate = () => interrupt("SIGTERM"); |
| 90 | process.once("SIGINT", onInterrupt); |
no outgoing calls
no test coverage detected