sofn-xyz / mailing

Build, test, send emails with React
https://www.mailing.run
MIT License
3.6k stars 74 forks source link

Mention about other ways to run mailing in test mode #440

Open marcincodes opened 1 year ago

marcincodes commented 1 year ago

Describe the bug Docs mention about setting NODE_ENV === "test" to enable mailing in "test mode". But in my case (nextjs) it was always defaulting to "development" even when I run the application NODE_ENV=test next dev.

To Reproduce Steps to reproduce the behavior:

  1. Run NextJS app with NODE_ENV=test
  2. Mailing is not in test mode

Expected behavior Mention in the docs you can use MAILING_INTEGRATION_TEST and TEST env variables to turn on test mode in mailing

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Nor bug / nor feature. Code is in place, docs are missing