MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / createMockLogger

Function createMockLogger

common/src/testing/mock-types.ts:70–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 * ```
69 */
70export function createMockLogger(): MockLogger {
71 return {
72 info: mock(() => {}) as ReturnType<typeof mock> & Logger['info'],
73 error: mock(() => {}) as ReturnType<typeof mock> & Logger['error'],
74 warn: mock(() => {}) as ReturnType<typeof mock> & Logger['warn'],
75 debug: mock(() => {}) as ReturnType<typeof mock> & Logger['debug'],
76 }
77}
78
79/**
80 * Creates a mock stat result for filesystem testing.

Callers 3

status.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected