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