✅ test: stub window.scrollTo

This commit is contained in:
2025-07-03 11:54:08 +02:00
parent 3b47a782de
commit c9ba561a4f
+5
View File
@@ -14,6 +14,11 @@ afterEach(() => {
cleanup()
})
/**
* Mocks the window.scrollTo method (called on page change)
*/
vi.stubGlobal('scrollTo', vi.fn())
/**
* Mocks the ResizeObserver API (used by ParallaxProvider)
*/