Skip to content

Commit 5a42828

Browse files
committed
test(feishu): mock websocket reconnect classifiers
1 parent e306941 commit 5a42828

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

extensions/feishu/src/monitor.test-mocks.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ import { vi } from "vitest";
33
export function createFeishuClientMockModule(): {
44
createFeishuWSClient: () => { start: () => void; close: () => void };
55
createEventDispatcher: () => { register: () => void };
6+
isFeishuWebSocketClientClosedError: () => boolean;
7+
isFeishuWebSocketReconnectRequiredError: () => boolean;
68
} {
79
return {
810
createFeishuWSClient: vi.fn(() => ({ start: vi.fn(), close: vi.fn() })),
911
createEventDispatcher: vi.fn(() => ({ register: vi.fn() })),
12+
isFeishuWebSocketClientClosedError: vi.fn(() => false),
13+
isFeishuWebSocketReconnectRequiredError: vi.fn(() => false),
1014
};
1115
}
1216

0 commit comments

Comments
 (0)