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
pull/388/head
Antti Kettunen 3 weeks ago
parent 484741db5c
commit 1b06b9dc33
No known key found for this signature in database
GPG Key ID: C6B2A3D250359BD7

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

Loading…
Cancel
Save