soulsync/webui/vitest.setup.ts
Antti Kettunen 1b06b9dc33
Stub scrollTo in Vitest setup
- Silence jsdom's not-implemented warning during router-driven tests
- Keep the fix in test bootstrap only so runtime behavior stays unchanged
2026-05-13 22:26:22 +03:00

7 lines
157 B
TypeScript

import '@testing-library/jest-dom/vitest';
import { vi } from 'vitest';
Object.defineProperty(window, 'scrollTo', {
value: vi.fn(),
writable: true,
});