File size: 625 Bytes
4c76b0d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Deprecated internal config API tests cover forbidden legacy plugin config API usage.
import { beforeAll, describe, expect, it } from "vitest";
import { collectDeprecatedInternalConfigApiViolations } from "../../../scripts/lib/config-boundary-guard.mts";

describe("deprecated internal config API guardrails", () => {
  let violations: ReturnType<typeof collectDeprecatedInternalConfigApiViolations>;

  beforeAll(() => {
    violations = collectDeprecatedInternalConfigApiViolations();
  });

  it("keeps production code off deprecated config load/write seams", () => {
    expect(violations).toStrictEqual([]);
  });
});