import { describe, it, expect, vi } from "vitest"; import * as Sentry from "@sentry/nextjs"; describe("setup/no-instrumentation guard (R49)", () => { it("Sentry.init is a vi.fn (mocked, not real)", () => { expect(vi.isMockFunction(Sentry.init)).toBe(true); }); it("Sentry.captureException is a vi.fn", () => { expect(vi.isMockFunction(Sentry.captureException)).toBe(true); }); it("calling Sentry.init does not throw or initialize", () => { expect(() => Sentry.init({ dsn: "https://x@y/1" } as Parameters[0])).not.toThrow(); }); });