import '@testing-library/jest-dom'; import { vi } from 'vitest'; // Mock sonner vi.mock('sonner', () => ({ toast: { success: vi.fn(), error: vi.fn(), warning: vi.fn(), info: vi.fn() } })); // Mock scrollIntoView for Radix UI components Element.prototype.scrollIntoView = vi.fn(); // Mock hasPointerCapture for Radix UI components if (typeof Element.prototype.hasPointerCapture === 'undefined') { Element.prototype.hasPointerCapture = vi.fn(() => false); }