View on GitHub


Email testing and SMS verification examples using MailSlurp and a wide range of frameworks.

Test user sign up with Jest, Puppeteer, and MailSlurp

An example repository showing how you can test email related processes with MailSlurp.


example sign-up.test.js uses Jest, Puppeteer and MailSlurp to open the MailSlurp test authentication app in a browser, create a new test email address, sign-up with that address and confirm the account.

It uses MailSlurp’s waitForLatestEmail feature to fetch the confirmation email and extract the confirmation code. This code is then submitted in the browser and the user is confirmed.


npm install


API_KEY=your-api-key npm t