The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix webhook tests
Steven Tey5c53c38871be
diff --git a/apps/web/lib/webhook/sample-events/payout-confirmed.json b/apps/web/lib/webhook/sample-events/payout-confirmed.jsonindex ffab580b10..d082d2dff1 100644--- a/apps/web/lib/webhook/sample-events/payout-confirmed.json+++ b/apps/web/lib/webhook/sample-events/payout-confirmed.json@@ -8,6 +8,7 @@"periodStart": "2025-10-22T15:49:33.343Z","periodEnd": "2025-10-31T18:29:59.999Z","createdAt": "2025-10-22T15:50:13.661Z",+ "initiatedAt": "2025-10-22T15:50:13.661Z","paidAt": null,"mode": "external","partner": {diff --git a/apps/web/tests/webhooks/index.test.ts b/apps/web/tests/webhooks/index.test.tsindex c72e95cd23..13d5797187 100644--- a/apps/web/tests/webhooks/index.test.ts+++ b/apps/web/tests/webhooks/index.test.ts@@ -68,6 +68,7 @@ const payoutWebhookEventSchemaExtended = payoutWebhookEventSchema.extend({.nullable().transform((str) => (str ? new Date(str) : null)),createdAt: z.string().transform((str) => new Date(str)),+ initiatedAt: z.string().transform((str) => new Date(str)),paidAt: z.string().nullable()