providerM2LegacyBoundary.test.ts 546 B

1234567891011121314
  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/lib/workspaceModelMirror.ts",
  6. ] as const;
  7. describe("M2 Renderer Provider legacy boundary", () => {
  8. it.each(retiredProviderSources)("不再保留已退出的旧模型镜像 %s", async (relativePath) => {
  9. const filePath = fileURLToPath(new URL(relativePath, import.meta.url));
  10. await expect(access(filePath)).rejects.toMatchObject({ code: "ENOENT" });
  11. });
  12. });