openclaw/extensions/feishu/src/monitor.test-mocks.ts
2026-03-02 09:59:16 +00:00

13 lines
343 B
TypeScript

import { vi } from "vitest";
export const probeFeishuMock: ReturnType<typeof vi.fn> = vi.hoisted(() => vi.fn());
vi.mock("./probe.js", () => ({
probeFeishu: probeFeishuMock,
}));
vi.mock("./client.js", () => ({
createFeishuWSClient: vi.fn(() => ({ start: vi.fn() })),
createEventDispatcher: vi.fn(() => ({ register: vi.fn() })),
}));