Do not import .env file in testing server

main
sudoer777 2021-10-04 13:59:38 -06:00
parent 1136513ded
commit 1c4694aff5
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}