Skip to content

Commit 760ab1a

Browse files
committed
test(server): stub activation manager in ws hub tests
1 parent 2eb1e54 commit 760ab1a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/server/src/__tests__/ws-hub.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ const createCommandContext = (eventBus: EventBus): CommandContext =>
7272
registerViewer: vi.fn(),
7373
unregisterViewer: vi.fn(),
7474
},
75+
activationMgr: {
76+
getLease: vi.fn(() => null),
77+
heartbeat: vi.fn(() => false),
78+
release: vi.fn(),
79+
onSocketClosed: vi.fn(),
80+
claim: vi.fn(),
81+
},
7582
}) as unknown as CommandContext;
7683

7784
const createHub = (eventBus: EventBus, commandContext: CommandContext): WsHub =>

0 commit comments

Comments
 (0)