Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(ai): restore the gateway baseline after gateway-chat.test.ts (#5907)
garrytan2ecc5e70967e
diff --git a/test/ai/gateway-chat.test.ts b/test/ai/gateway-chat.test.tsindex 9b0b1a4ac9..646ed86966 100644--- a/test/ai/gateway-chat.test.ts+++ b/test/ai/gateway-chat.test.ts@@ -16,7 +16,7 @@* `generateText` import via Bun's module-replace pattern.*/-import { describe, test, expect, beforeEach, mock } from 'bun:test';+import { describe, test, expect, beforeEach, afterAll, mock } from 'bun:test';import {configureGateway,resetGateway,@@ -33,6 +33,11 @@ import { AIConfigError } from '../../src/core/ai/errors.ts';import { listRecipes, getRecipe } from '../../src/core/ai/recipes/index.ts';import type { Recipe } from '../../src/core/ai/types.ts';+// These cases configure the gateway without an embedding model (the default+// shape). Restore the suite baseline so files that share this Bun process+// (CI runs a shard in one process) keep the pinned embedding shape.+afterAll(() => resetGateway());+describe('chat touchpoint — recipe registry', () => {test('all hosted tool-loop providers ship a chat touchpoint with supports_subagent_loop', () => {const expected = ['anthropic', 'openai', 'google', 'deepseek', 'groq', 'together'];