From e25d791d9bee38e7143757d37c42bd850e471ae8 Mon Sep 17 00:00:00 2001 From: Tam Nhu Tran Date: Sun, 19 Apr 2026 15:21:36 -0400 Subject: [PATCH] test(websearch): clear CCS_PROFILE_TYPE in SearXNG fallback spawn env The SearXNG-to-DuckDuckGo fallback test inherited the caller's CCS_PROFILE_TYPE via `...process.env`, causing the hook to take the 'native_default_profile' skip path and produce empty stdout. All other subprocess spawns in this file set CCS_PROFILE_TYPE to NEUTRAL_PROFILE_TYPE; this one was the outlier. Deterministic locally when CCS_PROFILE_TYPE=default is set in the shell. --- tests/unit/hooks/websearch-transformer.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/hooks/websearch-transformer.test.ts b/tests/unit/hooks/websearch-transformer.test.ts index 7678bb40..6aea3175 100644 --- a/tests/unit/hooks/websearch-transformer.test.ts +++ b/tests/unit/hooks/websearch-transformer.test.ts @@ -465,6 +465,7 @@ global.fetch = async (url) => { }), env: { ...process.env, + CCS_PROFILE_TYPE: NEUTRAL_PROFILE_TYPE, CCS_WEBSEARCH_ENABLED: '1', CCS_WEBSEARCH_SKIP: '0', CCS_WEBSEARCH_BRAVE: '0',