| 1 | import { Writable } from 'node:stream'; |
| 2 | |
| 3 | export class MockWritable extends Writable { |
| 4 | public buffer: string[] = []; |
| 5 | |
| 6 | _write( |
| 7 | chunk: any, |
| 8 | _encoding: BufferEncoding, |
| 9 | callback: (error?: Error | null | undefined) => void |
| 10 | ): void { |
| 11 | this.buffer.push(chunk.toString()); |
| 12 | callback(); |
| 13 | } |
| 14 | } |
nothing calls this directly
no outgoing calls
no test coverage detected