Skip to content

Commit

Permalink
Fix tests impacted by GA4.
Browse files Browse the repository at this point in the history
  • Loading branch information
dakotablair committed Nov 28, 2023
1 parent af8ea45 commit d1afe7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/features/navigator/Navigator.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const logError = (error: Error, info: { componentStack: string }) => {
describe('The <Navigator /> component...', () => {
beforeAll(() => {
enableFetchMocks();
window.gtag = jest.fn();
});

afterAll(() => {
Expand Down
1 change: 1 addition & 0 deletions src/features/profile/Profile.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ consoleError.mockImplementation(() => {});
describe('Profile related components', () => {
beforeAll(() => {
enableFetchMocks();
window.gtag = jest.fn();
});
afterAll(() => {
consoleError.mockRestore();
Expand Down

0 comments on commit d1afe7f

Please sign in to comment.