(signal: NodeJS.Signals = 'SIGTERM')
| 27 | } |
| 28 | |
| 29 | kill(signal: NodeJS.Signals = 'SIGTERM'): boolean { |
| 30 | this.killCalls.push(signal) |
| 31 | if (signal === 'SIGTERM' || signal === 'SIGKILL') { |
| 32 | // Simulate the child exiting in response. |
| 33 | this.connected = false |
| 34 | } |
| 35 | return true |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | // Track every fake child process the mock creates so tests can grab the |
no outgoing calls
no test coverage detected