UNPKG

claude-flow

Version:

Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration

24 lines 1.17 kB
/** * Smoke tests for web_search.ts — ADR-135 * * All tests are mock-based using webSearchTestHooks for ESM-safe injection. * NO live API calls are made. * * Coverage: * 1. resolveGoogleCustomSearchCredentials — env var path * 2. resolveGoogleCustomSearchCredentials — returns null when creds missing * 3. searchGoogleCustomSearch — parses items correctly (unit parse test) * 4. searchGoogleCustomSearch — throws on API error object in response * 5. searchWikipedia — strips HTML from snippet * 6. WebSearchTool.execute — Google creds present → Google used first * 7. WebSearchTool.execute — Google creds absent → Wikipedia used * 8. WebSearchTool.execute — Google throws → falls back to Wikipedia * 9. WebSearchTool.execute — Google 0 results → falls back to Wikipedia * 10. WebSearchTool.execute — Google + Wikipedia both fail → DDG used * 11. WebSearchTool.execute — rejects empty query * 12. WebSearchTool.execute — max_results capped at 10 * * Run with: npx tsx web_search.smoke.ts (from gaia-tools directory) */ export {}; //# sourceMappingURL=web_search.smoke.d.ts.map