()
| 78 | }; |
| 79 | |
| 80 | const cleanup = () => { |
| 81 | child.stdout.removeListener('data', onStdout); |
| 82 | child.stderr.removeListener('data', onStderr); |
| 83 | child.removeListener('error', onError); |
| 84 | child.removeListener('close', onClose); |
| 85 | if (child.connected) { |
| 86 | child.disconnect(); |
| 87 | } |
| 88 | }; |
| 89 | |
| 90 | child.stdout.on('data', onStdout); |
| 91 | child.stderr.on('data', onStderr); |
nothing calls this directly
no test coverage detected