/** * 🧪 Setup de Testes - Configuração Global * * Configuração inicial para os testes do sistema de agentes */ import { expect, afterEach, vi } from 'vitest'; import { cleanup } from '@testing-library/react'; import '@testing-library/jest-dom'; // Limpar após cada teste afterEach(() => { cleanup(); }); // Mock de módulos comuns vi.mock('fs/promises', () => ({ default: { readFile: vi.fn(), writeFile: vi.fn(), access: vi.fn() } })); // Configuração global global.expect = expect;