Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

test(web): freeze bundle expiry clock (#534)

Gustavo Ye4479e0c0a56d
diff --git a/src/web/src/hooks/community/community-ws/bundle-events.test.ts b/src/web/src/hooks/community/community-ws/bundle-events.test.ts
index 455b60773..2f978249c 100644
--- a/src/web/src/hooks/community/community-ws/bundle-events.test.ts
+++ b/src/web/src/hooks/community/community-ws/bundle-events.test.ts
@@ -273,6 +273,8 @@ describe("useCommunityWs — operation bundles", () => {
})
it("replays every legal committed-message child idempotently after a partial parent projection", async () => {
+ vi.useFakeTimers()
+ vi.setSystemTime(new Date("2026-08-21T12:00:00.000Z"))
await mountHook({ viewerUserId: "viewer-1" })
useCommunityStore.getState().subscribe({ channelId: "other-channel" })
capturedQueryClient.setQueryData(communityKeys.server("s1"), {