Usage
Create a webhook URL
UsegetWebhookUrl to generate a unique webhook.site URL for your test.
Configure your application to send webhooks to this URL.
Custom assertion
Use thetoHaveReceivedWebhook assertion to verify that a webhook was received.
Pass any webhook.site URL to expect() — either one generated with getWebhookUrl
or an existing URL — and specify content to match against the body.
Querying webhooks
UsequeryWebhookRequests to fetch matching webhook requests directly. This
is useful when you need to inspect the payload for further assertions.
WebhookRequest with the following
properties: