UNPKG

@boost/debug

Version:

Lightweight debugging and crash reporting.

18 lines 460 B
import type { Debugger } from '.'; /** * Returns a Vitest spy that matches the return value shape of `createDebugger`. * * ```ts * import { mockDebugger } from '@boost/debug/test'; * * it('calls the debugger', async () => { * const debug = await mockDebugger(); * * debug('Something is broken!'); * * expect(debug).toHaveBeenCalled(); * }); * ``` */ export declare function mockDebugger(): Promise<Debugger>; //# sourceMappingURL=test.d.ts.map