test: make plugin activation boundary env agnostic

This commit is contained in:
Peter Steinberger 2026-04-03 05:02:58 +09:00
parent bff6025bde
commit 64581c655d
No known key found for this signature in database
1 changed files with 4 additions and 4 deletions

View File

@ -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();
});