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

Function createFakeOutput

src/context/promptOverlayContext.test.tsx:58–65  ·  view source on GitHub ↗
(columns = 80, rows = 24)

Source from the content-addressed store, hash-verified

56}
57
58function createFakeOutput(columns = 80, rows = 24): FakeOutput {
59 const stdout = new PassThrough() as FakeOutput
60 stdout.isTTY = true
61 stdout.columns = columns
62 stdout.rows = rows
63 stdout.getWindowSize = () => [columns, rows]
64 return stdout
65}
66
67function captureWrites(stdout: FakeOutput): string[] {
68 const chunks: string[] = []

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected