diff --git a/src/setupTests.ts b/src/setupTests.ts index ab619fc..6269521 100644 --- a/src/setupTests.ts +++ b/src/setupTests.ts @@ -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) */