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

Function createFakeInput

src/context/promptOverlayContext.test.tsx:46–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44})
45
46function createFakeInput(): FakeInput {
47 const stdin = new PassThrough() as FakeInput
48 stdin.isTTY = true
49 stdin.isRaw = false
50 stdin.setRawMode = raw => {
51 stdin.isRaw = raw
52 }
53 stdin.ref = () => stdin
54 stdin.unref = () => stdin
55 return stdin
56}
57
58function createFakeOutput(columns = 80, rows = 24): FakeOutput {
59 const stdout = new PassThrough() as FakeOutput

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected