mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-29 20:15:03 +00:00
refactor(extensions): dedupe channel config, onboarding, and monitors
This commit is contained in:
12
extensions/feishu/src/monitor.test-mocks.ts
Normal file
12
extensions/feishu/src/monitor.test-mocks.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { vi } from "vitest";
|
||||
|
||||
export const probeFeishuMock = 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() })),
|
||||
}));
|
||||
Reference in New Issue
Block a user