Skip to content

Commit

Permalink
test: add global mock for gtag
Browse files Browse the repository at this point in the history
  • Loading branch information
OKendigelyan authored and ajinkyaraj-23 committed Feb 25, 2025
1 parent b8b3f60 commit 8d15bf7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/web/src/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { mockToast } from "@umami/state";
import { mockLocalStorage } from "@umami/test-utils";
import { setupJestCanvasMock } from "jest-canvas-mock";

(window as any).gtag = jest.fn();

const writeText = jest.fn();

Object.assign(navigator, {
Expand Down

0 comments on commit 8d15bf7

Please sign in to comment.