fix(regression): restore typed provider compat tests

This commit is contained in:
Tak Hoffman
2026-03-27 19:22:10 -05:00
parent 803f60105b
commit 9cb3ce8e1a
2 changed files with 7 additions and 5 deletions

View File

@@ -36,8 +36,10 @@ describe("provider flow", () => {
choiceId: "provider-plugin:sglang:custom",
choiceLabel: "SGLang",
},
]);
resolvePluginProviders.mockReturnValue([{ id: "sglang", docsPath: "/providers/sglang" }]);
] as never);
resolvePluginProviders.mockReturnValue([
{ id: "sglang", docsPath: "/providers/sglang" },
] as never);
const contributions = resolveManifestProviderSetupFlowContributions({
config: {},
@@ -61,8 +63,8 @@ describe("provider flow", () => {
value: "provider-plugin:vllm:custom",
label: "vLLM",
},
]);
resolvePluginProviders.mockReturnValue([{ id: "vllm", docsPath: "/providers/vllm" }]);
] as never);
resolvePluginProviders.mockReturnValue([{ id: "vllm", docsPath: "/providers/vllm" }] as never);
const contributions = resolveProviderModelPickerFlowContributions({
config: {},

View File

@@ -107,7 +107,7 @@ describe("resolvePluginCapabilityProviders", () => {
origin: "workspace",
contracts: {},
},
],
] as never,
diagnostics: [],
});
mocks.withBundledPluginAllowlistCompat.mockReturnValue(allowlistCompat);