(
mode: OutputMode = "human",
overrides: Partial<Omit<CommandContext, "ui">> = {},
)
| 40 | } |
| 41 | |
| 42 | export 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 | } |
nothing calls this directly
no test coverage detected