We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e306941 commit 5a42828Copy full SHA for 5a42828
1 file changed
extensions/feishu/src/monitor.test-mocks.ts
@@ -3,10 +3,14 @@ import { vi } from "vitest";
3
export function createFeishuClientMockModule(): {
4
createFeishuWSClient: () => { start: () => void; close: () => void };
5
createEventDispatcher: () => { register: () => void };
6
+ isFeishuWebSocketClientClosedError: () => boolean;
7
+ isFeishuWebSocketReconnectRequiredError: () => boolean;
8
} {
9
return {
10
createFeishuWSClient: vi.fn(() => ({ start: vi.fn(), close: vi.fn() })),
11
createEventDispatcher: vi.fn(() => ({ register: vi.fn() })),
12
+ isFeishuWebSocketClientClosedError: vi.fn(() => false),
13
+ isFeishuWebSocketReconnectRequiredError: vi.fn(() => false),
14
};
15
}
16
0 commit comments