13 lines
343 B
TypeScript
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() })),
|
|
}));
|