refactor: strip residual R-number test descriptions + Lazar URL from ADR-013

This commit is contained in:
2026-05-13 10:22:17 +02:00
parent 8ce0e4c59c
commit 318dc05b6e
3 changed files with 65 additions and 33 deletions

View File

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