import { describe, expect, test } from "bun:test";
import { NoopMetrics } from "@/metrics/noop-recorder.js";

describe("NoopMetrics", () => {
  test("implements every Metrics method without throwing", () => {
    const m = new NoopMetrics();
    expect(() => {
      m.increment("poll.executed", { poller: "jira" });
      m.count("poll.enqueued", 3, { poller: "jira" });
      m.gauge("queue.depth", 2);
      m.histogram("jobs.duration", 1200, { job_kind: "jira" });
      m.timing("poll.duration", 50, { poller: "jira" });
    }).not.toThrow();
  });
});
