diff --git a/src/plugin-activation-boundary.test.ts b/src/plugin-activation-boundary.test.ts index 5037e8cdadd..95c1a272d7c 100644 --- a/src/plugin-activation-boundary.test.ts +++ b/src/plugin-activation-boundary.test.ts @@ -129,10 +129,10 @@ describe("plugin activation boundary", () => { const { isChannelConfigured, resolveEnvApiKey } = await importConfigHelpers(); expect(isChannelConfigured({}, "whatsapp", {})).toBe(false); - expect(resolveEnvApiKey("anthropic-vertex", {})).toEqual({ - apiKey: "gcp-vertex-credentials", - source: "gcloud adc", - }); + // Anthropic Vertex auth depends on ambient ADC state on the current machine. + expect([null, { apiKey: "gcp-vertex-credentials", source: "gcloud adc" }]).toContainEqual( + resolveEnvApiKey("anthropic-vertex", {}), + ); expect(loadBundledPluginPublicSurfaceModuleSync).not.toHaveBeenCalled(); });