MCPcopy
hub / github.com/qawolf/cli / makeCtx

Function makeCtx

src/domains/flows/list.test.ts:20–34  ·  view source on GitHub ↗
(
  ui = makeFakeUI(),
  outputMode: OutputMode = "human",
)

Source from the content-addressed store, hash-verified

18const fakeCwd = "/proj";
19
20function makeCtx(
21 ui = makeFakeUI(),
22 outputMode: OutputMode = "human",
23): CommandContext {
24 return {
25 ui: { ...ui, mode: outputMode },
26 configDir: "/tmp/test-config",
27 outputMode,
28 isInteractive: false,
29 apiBaseUrl: "https://example.invalid",
30 signals: noopSignals,
31 log: () => makeNoopLogger(),
32 fs: makeMemoryFs(),
33 };
34}
35
36function makeDeps(overrides?: {
37 files?: readonly string[];

Callers 1

list.test.tsFile · 0.70

Calls 3

makeFakeUIFunction · 0.85
makeNoopLoggerFunction · 0.85
makeMemoryFsFunction · 0.85

Tested by

no test coverage detected