
























@@ -101,6 +101,7 @@ function expectBundledCompatLoadPath(params: {
101101});
102102expect(mocks.resolveRuntimePluginRegistry).toHaveBeenCalledWith({
103103config: params.enablementCompat,
104+onlyPluginIds: ["openai"],
104105activate: false,
105106});
106107}
@@ -400,6 +401,7 @@ describe("resolvePluginCapabilityProviders", () => {
400401allow: ["openai", "microsoft"],
401402}),
402403}),
404+onlyPluginIds: ["microsoft"],
403405activate: false,
404406});
405407});
@@ -573,6 +575,7 @@ describe("resolvePluginCapabilityProviders", () => {
573575expectNoResolvedCapabilityProviders(providers);
574576expect(mocks.resolveRuntimePluginRegistry).toHaveBeenCalledWith({
575577config: expect.anything(),
578+onlyPluginIds: [],
576579activate: false,
577580});
578581});
@@ -600,7 +603,16 @@ describe("resolvePluginCapabilityProviders", () => {
600603nativeDocumentInputs: ["pdf"],
601604},
602605} as never);
603-setBundledCapabilityFixture("mediaUnderstandingProviders");
606+mocks.loadPluginManifestRegistry.mockReturnValue({
607+plugins: [
608+{
609+id: "google",
610+origin: "bundled",
611+contracts: { mediaUnderstandingProviders: ["google"] },
612+},
613+] as never,
614+diagnostics: [],
615+});
604616mocks.withBundledPluginEnablementCompat.mockReturnValue(compatConfig);
605617mocks.withBundledPluginVitestCompat.mockReturnValue(compatConfig);
606618mocks.resolveRuntimePluginRegistry.mockImplementation((params?: unknown) =>
@@ -616,6 +628,7 @@ describe("resolvePluginCapabilityProviders", () => {
616628});
617629expect(mocks.resolveRuntimePluginRegistry).toHaveBeenCalledWith({
618630config: compatConfig,
631+onlyPluginIds: ["google"],
619632activate: false,
620633});
621634});
@@ -681,6 +694,7 @@ describe("resolvePluginCapabilityProviders", () => {
681694});
682695expect(mocks.resolveRuntimePluginRegistry).toHaveBeenCalledWith({
683696config: enablementCompat,
697+onlyPluginIds: ["google"],
684698activate: false,
685699});
686700});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。