UNPKG

universal-ai-brain

Version:

🧠 UNIVERSAL AI BRAIN 3.3 - The world's most advanced cognitive architecture with 24 specialized systems, MongoDB 8.1 $rankFusion hybrid search, latest Voyage 3.5 embeddings, and framework-agnostic design. Works with Mastra, Vercel AI, LangChain, OpenAI A

28 lines (23 loc) • 518 B
// Setup for utils package tests // Test utilities for utils package (global as any).utilsTestUtils = { createMockLogger: () => ({ debug: jest.fn(), info: jest.fn(), warn: jest.fn(), error: jest.fn() }), captureConsoleOutput: () => { const logs: string[] = []; const originalLog = console.log; console.log = jest.fn((message) => { logs.push(message); }); return { logs, restore: () => { console.log = originalLog; } }; } };