import { describe, expect, it } from "vitest"; describe("@toolctrl/realtime public entrypoint", () => { it("exports realtime event contract bindings", async () => { const entrypoint = await import("./index.js"); expect(entrypoint.REALTIME_EVENT_NAMES.notificationSnapshot).toBe("notification.snapshot"); expect(entrypoint.validateRealtimeEvent).toBeTypeOf("function"); expect(entrypoint.isRealtimeEvent).toBeTypeOf("function"); expect(entrypoint.subscribeToRealtime).toBeTypeOf("function"); }); });