({ stdout, stderr })
| 183 | #seenNotices = new Set() |
| 184 | |
| 185 | constructor ({ stdout, stderr }) { |
| 186 | this.#stdout = setBlocking(stdout) |
| 187 | this.#stderr = setBlocking(stderr) |
| 188 | |
| 189 | // Handlers are set immediately so they can buffer all events |
| 190 | process.on('log', this.#logHandler) |
| 191 | process.on('output', this.#outputHandler) |
| 192 | process.on('input', this.#inputHandler) |
| 193 | this.#progress = new Progress({ stream: stderr }) |
| 194 | } |
| 195 | |
| 196 | off () { |
| 197 | process.off('log', this.#logHandler) |
nothing calls this directly
no test coverage detected