MCPcopy
hub / github.com/vitejs/vite / createMockConsole

Function createMockConsole

packages/vite/src/shared/__tests__/forwardConsole.spec.ts:72–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71describe('setupForwardConsoleHandler', () => {
72 function createMockConsole() {
73 return {
74 error: vi.fn(),
75 warn: vi.fn(),
76 info: vi.fn(),
77 log: vi.fn(),
78 debug: vi.fn(),
79 } as unknown as Console
80 }
81
82 function createMockTransport(
83 send: (...args: any[]) => Promise<void>,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected