MCPcopy Create free account
hub / github.com/GCWing/BitFun / createTestLogger

Function createTestLogger

src/web-ui/src/shared/utils/startupTrace.test.ts:13–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11import type { LoggerLike } from './timing';
12
13function createTestLogger(): LoggerLike & {
14 debug: ReturnType<typeof vi.fn>;
15 info: ReturnType<typeof vi.fn>;
16 warn: ReturnType<typeof vi.fn>;
17} {
18 return {
19 trace: vi.fn(),
20 debug: vi.fn(),
21 info: vi.fn(),
22 warn: vi.fn(),
23 error: vi.fn(),
24 };
25}
26
27describe('startupTrace', () => {
28 it('records startup phases without exposing sensitive fields or writing event logs by default', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected