Resolve notifications warning in when running tests

I'm getting this warning when running my test suite. It's coming from (I think) AshAuthentication sending confirmation emails. I'm not sure how to resolve it.
[warning] Missed 1 notifications in action Iterup.Accounts.UserToken.store_confirmation_changes.

This happens when the resources are in a transaction, and you did not pass
`return_notifications?: true`. If you are in a changeset hook, you can
return the notifications. If not, you can send the notifications using
`Ash.Notifier.notify/1` once your resources are out of a transaction.
[warning] Missed 1 notifications in action Iterup.Accounts.UserToken.store_confirmation_changes.

This happens when the resources are in a transaction, and you did not pass
`return_notifications?: true`. If you are in a changeset hook, you can
return the notifications. If not, you can send the notifications using
`Ash.Notifier.notify/1` once your resources are out of a transaction.
1 Reply
ZachDaniel
ZachDaniel•3y ago
# config/test.exs
config :ash, :missed_notifications, :ignore
# config/test.exs
config :ash, :missed_notifications, :ignore
add that to your test config 🙂

Did you find this page helpful?