import { describe, expect, it } from "@suaveplan/testing/runner"; describe("dep-graph", () => { it("package has correct name", { timeout: 5000 }, async () => { const pkg = await import("../package.json", { with: { type: "json" } }); expect(pkg.default.name).toBe("@suaveplan/events-schema"); }); it("exports attachEventSchemas", { timeout: 30000 }, async () => { const { attachEventSchemas } = await import("../src/index.js"); expect(typeof attachEventSchemas).toBe("function"); }); it("exports EventsSchemaError", { timeout: 30000 }, async () => { const { EventsSchemaError } = await import("../src/index.js"); expect(typeof EventsSchemaError).toBe("function"); }); });