Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update index.test.ts

Kiran Kedc4465a4286
diff --git a/apps/web/tests/webhooks/index.test.ts b/apps/web/tests/webhooks/index.test.ts
index 87b073513d..0f49f1ae74 100644
--- a/apps/web/tests/webhooks/index.test.ts
+++ b/apps/web/tests/webhooks/index.test.ts
@@ -42,8 +42,10 @@ const eventSchemas: Record<WebhookTrigger, z.ZodSchema> = {
};
describe("Webhooks", () => {
- WEBHOOK_TRIGGERS.map((trigger) =>
- test.concurrent(trigger, () => testWebhookEvent(trigger), 10000),
+ test.each(WEBHOOK_TRIGGERS)(
+ "%s",
+ async (trigger: WebhookTrigger) => await testWebhookEvent(trigger),
+ 10000,
);
});
@@ -70,6 +72,8 @@ const assertQstashMessage = async (
) => {
const qstashMessage = await qstash.messages.get(messageId);
+ console.log(`Got qstash message for ${trigger}`, qstashMessage.messageId);
+
const callbackUrl = new URL(qstashMessage.callback!);
const failureCallbackUrl = new URL(qstashMessage.failureCallback!);
const receivedBody = JSON.parse(qstashMessage.body!) as WebhookEvent;