✅ test: stub window.scrollTo
This commit is contained in:
@@ -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)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user