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 from getWebhookUrl or an
existing one, with the content to match in 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: