()
| 59 | }) |
| 60 | |
| 61 | function createFakeInput(): FakeInput { |
| 62 | const stdin = new PassThrough() as FakeInput |
| 63 | stdin.isTTY = true |
| 64 | stdin.isRaw = false |
| 65 | stdin.setRawMode = (raw: boolean) => { |
| 66 | stdin.isRaw = raw |
| 67 | } |
| 68 | stdin.ref = () => stdin |
| 69 | stdin.unref = () => stdin |
| 70 | return stdin |
| 71 | } |
| 72 | |
| 73 | function createFakeOutput(columns: number, rows: number): FakeOutput { |
| 74 | const stdout = new PassThrough() as FakeOutput |
no outgoing calls
no test coverage detected