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

Function makeCtx

src/shell/commandContext.testUtils.ts:42–57  ·  view source on GitHub ↗
(
  mode: OutputMode = "human",
  overrides: Partial<Omit<CommandContext, "ui">> = {},
)

Source from the content-addressed store, hash-verified

40}
41
42export function makeCtx(
43 mode: OutputMode = "human",
44 overrides: Partial<Omit<CommandContext, "ui">> = {},
45): CommandContext {
46 return {
47 ui: makeFakeUI(mode),
48 configDir: "/tmp/test-config",
49 outputMode: mode,
50 isInteractive: false,
51 apiBaseUrl: "https://example.invalid",
52 signals: noopSignals,
53 log: () => makeNoopLogger(),
54 fs: makeMemoryFs(),
55 ...overrides,
56 };
57}

Callers

nothing calls this directly

Calls 3

makeFakeUIFunction · 0.85
makeNoopLoggerFunction · 0.85
makeMemoryFsFunction · 0.85

Tested by

no test coverage detected