# `Accrue.Test.Webhooks`
[🔗](https://github.com/szTheory/accrue/blob/accrue-v0.3.0/lib/accrue/test/webhooks.ex#L1)

Synthetic webhook helpers for host tests.

Events are persisted through `Accrue.Webhook.Ingest` and then dispatched
through `Accrue.Webhook.DefaultHandler` so tests exercise the same reducer
path as production webhooks.

# `trigger`

```elixir
@spec trigger(atom() | binary(), term()) ::
  {:ok, Accrue.Webhook.WebhookEvent.t()} | {:error, term()}
```

Triggers a synthetic webhook event for the given subject.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
