diff --git a/mail/mail.js b/mail/mail.js index caac4d4..1c9ccef 100644 --- a/mail/mail.js +++ b/mail/mail.js @@ -1,7 +1,7 @@ const app = require('../app'); const nodemailer = require('nodemailer'); -if (process.env.NODE_ENV !== 'production') { +if (process.env.NODE_ENV !== 'production' || process.env.NODE_ENV !== 'testing') { require('dotenv').config(); }