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

Function makeCtx

src/commands/flows/runStagedFlows.test.ts:59–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59function makeCtx(): CommandContext {
60 return {
61 configDir: "/mock/config",
62 apiBaseUrl: "https://app.qawolf.com",
63 outputMode: "human",
64 isInteractive: false,
65 signals: noopSignals,
66 fs: makeMemoryFs(),
67 log: () => makeNoopLogger(),
68 ui: { ...makeFakeUI("human"), info: uiInfoMock },
69 } as unknown as CommandContext;
70}
71
72beforeEach(() => {
73 for (const m of trackedMocks) m.mockClear();

Callers 1

Calls 3

makeMemoryFsFunction · 0.85
makeNoopLoggerFunction · 0.85
makeFakeUIFunction · 0.85

Tested by

no test coverage detected