import "reflect-metadata";
import { describe, expect, it } from "vitest";
import type { SanitizedConfig } from "payload";
import { NoopTracer, NoopLogger } from "@repo/core-shared/instrumentation";
import { bindProductionBlog } from "@/di/bind-production";

describe("bindProductionBlog — boot-time conformance", () => {
  it("binds every manifest use case through withSpan + withCapture", () => {
    expect(() =>
      bindProductionBlog({
        config: {} as SanitizedConfig,
        tracer: new NoopTracer(),
        logger: new NoopLogger(),
      }),
    ).not.toThrow();
  });
});
