UNPKG

@boost/log

Version:

Lightweight level based logging system.

18 lines 456 B
import type { LoggerFunction } from '.'; /** * Returns a Vitest spy that matches the return value shape of `createLogger`. * * ```ts * import { mockLogger } from '@boost/log/test'; * * it('calls the logger', async () => { * const log = await mockLogger(); * * log('Something has happened'); * * expect(log).toHaveBeenCalled(); * }); * ``` */ export declare function mockLogger(): Promise<LoggerFunction>; //# sourceMappingURL=test.d.ts.map