From b016c20ffdd03418cd3e0bb5ddf146334b8248e7 Mon Sep 17 00:00:00 2001 From: Johnny Bouder Date: Sun, 28 Jul 2024 14:40:54 -0400 Subject: [PATCH] Remove unnecessary include in tsconfig to fix build. Fix unit tests breaking build. --- src/components/footer/footer.test.tsx | 2 +- src/components/header/header.test.tsx | 2 +- tsconfig.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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(