()
| 22 | }) |
| 23 | |
| 24 | function createFakeInput() { |
| 25 | const { PassThrough } = require('stream') |
| 26 | const stdin = new PassThrough() |
| 27 | stdin.isTTY = true |
| 28 | stdin.isRaw = false |
| 29 | stdin.setRawMode = (raw: boolean) => { stdin.isRaw = raw } |
| 30 | stdin.ref = () => stdin |
| 31 | stdin.unref = () => stdin |
| 32 | return stdin |
| 33 | } |
| 34 | |
| 35 | function createFakeOutput(columns: number, rows: number) { |
| 36 | const { PassThrough } = require('stream') |
no outgoing calls
no test coverage detected