Mailchimp
Learn how to properly mock Mailchimp's email service.
We'll cover the following
Why do we mock Mailchimp?
Mailchimp and other notification services rely on the ability to trigger notifications via an API. Some make a client available, but all require authentication, configuration, and a request to an external server. Notifications triggering at the correct points in our software lifecycle is critical to the success of our application, but of course, we can't actually send notifications from our test suite. Because of this, we mock the Mailchimp service, allowing us to test when and how its functions are called, without actually calling it.
Get hands-on with 1400+ tech skills courses.