# X_TEST_MAIL_EXPECTED

## Means

toHaveSentMail was handed something other than the mail fixture

## Typical cause

the receiver is the outbox a test owns, and this one has no outbox() reader

## Fix

`unitTest(..., async ({ mail }) => { ...; expect(mail).toHaveSentMail(welcomeMail, { to: address }); })`

[Testing](/error-codes#testing)
