The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update the clickId
Kiran K5c39c02fadcb
diff --git a/apps/web/tests/tracks/track-customer.test.ts b/apps/web/tests/tracks/track-customer.test.tsindex 2223b0ed4f..e139fc6edd 100644--- a/apps/web/tests/tracks/track-customer.test.ts+++ b/apps/web/tests/tracks/track-customer.test.ts@@ -12,7 +12,7 @@ describe("POST /track/customer", async () => {const response = await http.post<TrackCustomerResponse>({path: "/track/customer",body: {- customerId: customer.id, // We're only required params+ customerId: customer.id,},});diff --git a/apps/web/tests/tracks/track-lead.test.ts b/apps/web/tests/tracks/track-lead.test.tsindex e981cbece6..4dbe7b7c14 100644--- a/apps/web/tests/tracks/track-lead.test.ts+++ b/apps/web/tests/tracks/track-lead.test.ts@@ -1,5 +1,6 @@import { TrackLeadResponse } from "@/lib/types";import { randomCustomer } from "tests/utils/helpers";+import { clickId } from "tests/utils/resource";import { describe, expect, test } from "vitest";import { IntegrationHarness } from "../utils/integration";@@ -7,7 +8,6 @@ describe("POST /track/lead", async () => {const h = new IntegrationHarness();const { http } = await h.init();const customer = randomCustomer();- const clickId = "avYirXJbt3gGALMk"; // TODO: Replace this with a valid clickIdtest("track a lead", async () => {const response = await http.post<TrackLeadResponse>({diff --git a/apps/web/tests/tracks/track-sale.test.ts b/apps/web/tests/tracks/track-sale.test.tsindex 46df94409c..af14f2dda4 100644--- a/apps/web/tests/tracks/track-sale.test.ts+++ b/apps/web/tests/tracks/track-sale.test.ts@@ -1,5 +1,6 @@import { TrackSaleResponse } from "@/lib/types";import { randomCustomer, randomId } from "tests/utils/helpers";+import { clickId } from "tests/utils/resource";import { expect, test } from "vitest";import { IntegrationHarness } from "../utils/integration";@@ -7,7 +8,6 @@ test("POST /track/sale", async () => {const h = new IntegrationHarness();const { http } = await h.init();const customer = randomCustomer();- const clickId = "avYirXJbt3gGALMk"; // TODO: Replace this with a valid clickIdconst sale = {eventName: "Subscription",diff --git a/apps/web/tests/utils/resource.ts b/apps/web/tests/utils/resource.tsindex 7064475625..b614ad3135 100644--- a/apps/web/tests/utils/resource.ts+++ b/apps/web/tests/utils/resource.ts@@ -2,3 +2,5 @@ export const link = {domain: "dub.sh",url: "https://github.com/dubinc",};++export const clickId = "D1AwwfK6Nf6akeC2";