This is a helper for CodeceptJS to check for emails sent to MailCatcher during a test.
- Download
mailcatcher.jsto your project that has CodeceptJS and make sure to addgotas npm dependency (or replace the usages ofgotin 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: