19 lines
756 B
TypeScript
19 lines
756 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-otel");
|
|
});
|
|
|
|
it("exports attachEventTracing", { timeout: 30000 }, async () => {
|
|
const { attachEventTracing } = await import("../src/index.js");
|
|
expect(typeof attachEventTracing).toBe("function");
|
|
});
|
|
|
|
it("exports serializeTraceContext", { timeout: 30000 }, async () => {
|
|
const { serializeTraceContext } = await import("../src/index.js");
|
|
expect(typeof serializeTraceContext).toBe("function");
|
|
});
|
|
});
|