diff --git a/src/features/navigator/Navigator.test.tsx b/src/features/navigator/Navigator.test.tsx index 252d9338..a2ece929 100644 --- a/src/features/navigator/Navigator.test.tsx +++ b/src/features/navigator/Navigator.test.tsx @@ -71,6 +71,7 @@ const logError = (error: Error, info: { componentStack: string }) => { describe('The component...', () => { beforeAll(() => { enableFetchMocks(); + window.gtag = jest.fn(); }); afterAll(() => { diff --git a/src/features/profile/Profile.test.tsx b/src/features/profile/Profile.test.tsx index b7b74b8c..d58d26ca 100644 --- a/src/features/profile/Profile.test.tsx +++ b/src/features/profile/Profile.test.tsx @@ -81,6 +81,7 @@ consoleError.mockImplementation(() => {}); describe('Profile related components', () => { beforeAll(() => { enableFetchMocks(); + window.gtag = jest.fn(); }); afterAll(() => { consoleError.mockRestore();