Skip to main content

mockDebugger

Callable


  • 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();
    });