@boost/debugTest utilitiesFunctionsmockDebuggermockDebugger CallablemockDebugger(): Promise<Debugger>Returns a Vitest spy that matches the return value shape of createDebugger. import { mockDebugger } from '@boost/debug/test';it('calls the debugger', async () => { const debug = await mockDebugger(); debug('Something is broken!'); expect(debug).toHaveBeenCalled();});
Returns a Vitest spy that matches the return value shape of
createDebugger
.