mirror of
https://bitbucket.org/siakitem/my-pi.git
synced 2026-08-28 08:35:57 +00:00
14 lines
442 B
TypeScript
14 lines
442 B
TypeScript
import { vi } from "vitest";
|
|
|
|
/**
|
|
* A fake `AuthorizerLog` / `DebugReviewLogger`: `review` and `debug` as
|
|
* `vi.fn()` stubs.
|
|
*
|
|
* The return type is intentionally unannotated so callers keep full `Mock`
|
|
* access (`toHaveBeenCalledWith`, `mock.calls`); the shape structurally
|
|
* satisfies both the narrow authorizer-log seam and the session logger.
|
|
*/
|
|
export function makeAuthorizerLog() {
|
|
return { review: vi.fn(), debug: vi.fn() };
|
|
}
|