provider-m2-legacy-boundary.test.ts 645 B

12345678910111213141516
  1. import { access } from "node:fs/promises";
  2. import { fileURLToPath } from "node:url";
  3. import { describe, expect, it } from "vitest";
  4. const retiredProviderSources = [
  5. "../src/app/official-mcp-trusted-origins.ts",
  6. "../src/app/model-catalog-overlay.ts",
  7. "../src/zcode-protocol/active-session-model-limits.ts",
  8. ] as const;
  9. describe("M2 Bootstrap Provider legacy boundary", () => {
  10. it.each(retiredProviderSources)("不再保留无调用者的旧 Provider 边界 %s", async (path) => {
  11. const filePath = fileURLToPath(new URL(path, import.meta.url));
  12. await expect(access(filePath)).rejects.toMatchObject({ code: "ENOENT" });
  13. });
  14. });