ReachFive / fake-smtp-server

Fake SMTP Server for email testing
https://www.npmjs.com/package/fake-smtp-server
MIT License
192 stars 81 forks source link

Add an ability to remove email through the api. #2

Closed pioneer32 closed 6 years ago

pioneer32 commented 6 years ago

The problem:

When fake-smtp-server is used for automated testing, restarting the server is the only way to remove all caught emails

The solution:

This PR adds an additional end-point DELETE /api/emails which can be fetched between tests in order to delete all emails kept by the server.

jcdelmas commented 6 years ago

Thanks !