Initial Commit

This commit is contained in:
2026-05-27 23:47:53 +01:00
parent fbc70f96e6
commit 9b28db724f
18103 changed files with 1600554 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
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"
);
});
});