From 64581c655d7f762526b8cb28126c1a5f29dd368d Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 3 Apr 2026 05:02:58 +0900 Subject: [PATCH] test: make plugin activation boundary env agnostic --- src/plugin-activation-boundary.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(); });