MCPcopy Create free account
hub / github.com/Noumena-Network/code / createFakeInput

Function createFakeInput

src/ink/inkCompactBaseline.test.tsx:24–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22})
23
24function 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
35function createFakeOutput(columns: number, rows: number) {
36 const { PassThrough } = require('stream')

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected