diff --git a/src/components/DownloadComponents/hooks/useDownloadForm.test.ts b/src/components/DownloadComponents/hooks/useDownloadForm.test.ts index e2ce32217e..6824296663 100644 --- a/src/components/DownloadComponents/hooks/useDownloadForm.test.ts +++ b/src/components/DownloadComponents/hooks/useDownloadForm.test.ts @@ -46,6 +46,15 @@ jest.mock("../../../browser-lib/hubspot/forms/getHubspotUserToken", () => ({ default: (...args: []) => getHubspotUserToken(...args), })); +const testPosthogDistinctId = "test-anonymous-id"; + +jest.mock("../../../context/Analytics/useAnalytics", () => ({ + __esModule: true, + default: () => ({ + posthogDistinctId: testPosthogDistinctId, + }), +})); + describe("useDownloadForm", () => { beforeEach(() => { jest.clearAllMocks();