Files
2026-05-27 23:47:53 +01:00

19 lines
746 B
TypeScript

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