From a9a9cf42579e02212b2b9422f39eb78ac2026afa Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Mon, 16 Mar 2026 00:09:48 -0700 Subject: [PATCH] GitHub Copilot: move runtime tests to provider contracts --- extensions/github-copilot/index.test.ts | 38 ------------------------- 1 file changed, 38 deletions(-) delete mode 100644 extensions/github-copilot/index.test.ts diff --git a/extensions/github-copilot/index.test.ts b/extensions/github-copilot/index.test.ts deleted file mode 100644 index 633d1f1ad75..00000000000 --- a/extensions/github-copilot/index.test.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { describe, expect, it } from "vitest"; -import { registerSingleProviderPlugin } from "../../src/test-utils/plugin-registration.js"; -import githubCopilotPlugin from "./index.js"; - -const registerProvider = () => registerSingleProviderPlugin(githubCopilotPlugin); - -describe("github-copilot plugin", () => { - it("owns Copilot-specific forward-compat fallbacks", () => { - const provider = registerProvider(); - const model = provider.resolveDynamicModel?.({ - provider: "github-copilot", - modelId: "gpt-5.3-codex", - modelRegistry: { - find: (_provider: string, id: string) => - id === "gpt-5.2-codex" - ? { - id, - name: id, - api: "openai-codex-responses", - provider: "github-copilot", - baseUrl: "https://api.copilot.example", - reasoning: true, - input: ["text"], - cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 }, - contextWindow: 128_000, - maxTokens: 8_192, - } - : null, - } as never, - }); - - expect(model).toMatchObject({ - id: "gpt-5.3-codex", - provider: "github-copilot", - api: "openai-codex-responses", - }); - }); -});