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();