This is a helper for CodeceptJS to check for emails sent to MailCatcher during a test.
- Download
mailcatcher.js
to your project that has CodeceptJS and make sure to addgot
as npm dependency (or replace the usages ofgot
in this helper by your preferred http library). - Make sure the application you're testing is sending the emails to a mailcatcher instance.
In your codecept.config.js
add something like this to your helpers
configuration: