The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
try fixing the test
Kiran K4f7d929df817
diff --git a/apps/web/tests/tracks/track-sale.test.ts b/apps/web/tests/tracks/track-sale.test.tsindex af14f2dda4..e2e6aedae5 100644--- a/apps/web/tests/tracks/track-sale.test.ts+++ b/apps/web/tests/tracks/track-sale.test.ts@@ -1,4 +1,4 @@-import { TrackSaleResponse } from "@/lib/types";+import { TrackLeadResponse, TrackSaleResponse } from "@/lib/types";import { randomCustomer, randomId } from "tests/utils/helpers";import { clickId } from "tests/utils/resource";import { expect, test } from "vitest";@@ -17,7 +17,7 @@ test("POST /track/sale", async () => {paymentProcessor: "stripe",};- await http.post({+ const { data: lead } = await http.post<TrackLeadResponse>({path: "/track/lead",body: {clickId,@@ -36,7 +36,7 @@ test("POST /track/sale", async () => {const response = await http.post<TrackSaleResponse>({path: "/track/sale",body: {- customerId: customer.id,+ customerId: lead.customer.id,...sale,},});