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
This commit is contained in:
Antti Kettunen 2026-04-26 20:36:46 +03:00
parent 484741db5c
commit 1b06b9dc33
No known key found for this signature in database
GPG key ID: C6B2A3D250359BD7

View file

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