diff --git a/src/web/inbound/access-control.test-harness.ts b/src/web/inbound/access-control.test-harness.ts index bd2ba79ec..23213ceef 100644 --- a/src/web/inbound/access-control.test-harness.ts +++ b/src/web/inbound/access-control.test-harness.ts @@ -1,8 +1,15 @@ import { beforeEach, vi } from "vitest"; -export const sendMessageMock = vi.fn(); -export const readAllowFromStoreMock = vi.fn(); -export const upsertPairingRequestMock = vi.fn(); +type AsyncMock = { + (...args: TArgs): Promise; + mockReset: () => AsyncMock; + mockResolvedValue: (value: TResult) => AsyncMock; + mockResolvedValueOnce: (value: TResult) => AsyncMock; +}; + +export const sendMessageMock = vi.fn() as AsyncMock; +export const readAllowFromStoreMock = vi.fn() as AsyncMock; +export const upsertPairingRequestMock = vi.fn() as AsyncMock; let config: Record = {};