MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / captureLogger

Function captureLogger

apps/kimi-code/test/cli/update/preflight.test.ts:200–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198type TestLogFn = ReturnType<typeof vi.fn<(message: string, payload?: unknown) => void>>;
199
200function captureLogger(): {
201 info: TestLogFn;
202 warn: TestLogFn;
203 error: TestLogFn;
204 debug: TestLogFn;
205} {
206 return {
207 info: vi.fn<(message: string, payload?: unknown) => void>(),
208 warn: vi.fn<(message: string, payload?: unknown) => void>(),
209 error: vi.fn<(message: string, payload?: unknown) => void>(),
210 debug: vi.fn<(message: string, payload?: unknown) => void>(),
211 };
212}
213
214function mockSpawnExit(code: number, signal: NodeJS.Signals | null = null): void {
215 mocks.spawn.mockImplementation(() => {

Callers 1

preflight.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected