import { describe, expect, it } from "@suaveplan/testing/runner"; describe("@suaveplan/event-sourcing dep-graph", () => { it("imports without error", { timeout: 30000 }, async () => { const mod = await import("../src/index.js"); expect(typeof mod.Aggregate).toBe("function"); expect(typeof mod.MemoryEventStore).toBe("function"); expect(typeof mod.createMemoryEventStore).toBe("function"); expect(typeof mod.createAggregateRepository).toBe("function"); expect(typeof mod.createProjection).toBe("function"); expect(typeof mod.registerUpcaster).toBe("function"); expect(typeof mod.upcastEvents).toBe("function"); expect(typeof mod.clearUpcasters).toBe("function"); expect(typeof mod.EventSourcingError).toBe("function"); expect(mod.ES_CODES).toBeDefined(); }); });