Files
suaveplan/packages/networking/events/event-sourcing/tests/dep-graph.test.ts
2026-05-27 23:47:53 +01:00

18 lines
860 B
TypeScript

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();
});
});