Mocking sendEmail() proves that your application tried to send something. It does not prove that: The template rendered correctly The SMTP handoff succeeded The recipient received the right message The verification URL works The OTP can complete the flow For unit tests, mocking the mailer often ...

Source: [Dev.to](https://dev.to/yolaine/how-to-test-real-email-flows-with-playwright-without-docker-or-real-inboxes-3jid)

Sponsored