()
| 69 | }) |
| 70 | |
| 71 | function createFakeInput(): FakeInput { |
| 72 | const stdin = new PassThrough() as FakeInput |
| 73 | stdin.isTTY = true |
| 74 | stdin.isRaw = false |
| 75 | stdin.setRawMode = (raw: boolean) => { |
| 76 | stdin.isRaw = raw |
| 77 | } |
| 78 | stdin.ref = () => stdin |
| 79 | stdin.unref = () => stdin |
| 80 | return stdin |
| 81 | } |
| 82 | |
| 83 | function createFakeOutput(columns: number, rows: number): FakeOutput { |
| 84 | const stdout = new PassThrough() as FakeOutput |
no outgoing calls
no test coverage detected