diff --git a/src/components/footer/footer.test.tsx b/src/components/footer/footer.test.tsx index d6a3551f..b98113d0 100644 --- a/src/components/footer/footer.test.tsx +++ b/src/components/footer/footer.test.tsx @@ -19,7 +19,7 @@ describe('Footer', () => { }); test('should scroll to top', async () => { - window.scrollTo = vi.fn(); + vi.spyOn(window, 'scrollTo').mockImplementation(() => {}); render(