import { describe, expect, it } from "vitest"; import { PRESENCE_HEARTBEAT_MS, PRESENCE_TTL_MS } from "./presence-constants"; describe("presence timing", () => { it("expires only after several missed heartbeats", () => { expect(PRESENCE_HEARTBEAT_MS).toBe(15_000); expect(PRESENCE_TTL_MS).toBeGreaterThanOrEqual(PRESENCE_HEARTBEAT_MS * 3); }); });