()
| 111 | } |
| 112 | |
| 113 | function createFakeInput(): FakeInput { |
| 114 | const stdin = new PassThrough() as FakeInput |
| 115 | stdin.isTTY = true |
| 116 | stdin.isRaw = false |
| 117 | stdin.setRawMode = (raw: boolean) => { |
| 118 | stdin.isRaw = raw |
| 119 | } |
| 120 | stdin.ref = () => stdin |
| 121 | stdin.unref = () => stdin |
| 122 | return stdin |
| 123 | } |
| 124 | |
| 125 | function createFakeOutput(columns: number, rows: number): FakeOutput { |
| 126 | const stdout = new PassThrough() as FakeOutput |
no outgoing calls
no test coverage detected