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

Function createFakeOutput

src/ink/inkCompactBaseline.test.tsx:35–43  ·  view source on GitHub ↗
(columns: number, rows: number)

Source from the content-addressed store, hash-verified

33}
34
35function createFakeOutput(columns: number, rows: number) {
36 const { PassThrough } = require('stream')
37 const stdout = new PassThrough()
38 stdout.isTTY = true
39 stdout.columns = columns
40 stdout.rows = rows
41 stdout.getWindowSize = () => [columns, rows] as [number, number]
42 return stdout
43}
44
45async function waitFor(
46 predicate: () => boolean,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected