The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Add Singular links e2e test
Steven Teyde081d6d0ae8
diff --git a/apps/web/tests/redirects/index.test.ts b/apps/web/tests/redirects/index.test.tsindex 7161956a7e..383f282554 100644--- a/apps/web/tests/redirects/index.test.ts+++ b/apps/web/tests/redirects/index.test.ts@@ -103,6 +103,17 @@ describe.runIf(env.CI)("Link Redirects", async () => {expect(response.status).toBe(302);});+ test("singular tracking url", async () => {+ const response = await fetch(`${h.baseUrl}/singular`, fetchOptions);++ // location to include cl, ua, ip query params+ expect(response.headers.get("location")).toMatch(/cl=[a-zA-Z0-9]+/);+ expect(response.headers.get("location")).toMatch(/ua=[a-zA-Z0-9]+/);+ expect(response.headers.get("location")).toMatch(/ip=[a-zA-Z0-9]+/);+ expect(response.headers.get("x-powered-by")).toBe(poweredBy);+ expect(response.status).toBe(302);+ });+test("query params with no value", async () => {const response = await fetch(`${h.baseUrl}/query-params-no-value`,