Do not import .env file in testing server
parent
1136513ded
commit
1c4694aff5
|
@ -1,7 +1,7 @@
|
||||||
const app = require('../app');
|
const app = require('../app');
|
||||||
const nodemailer = require('nodemailer');
|
const nodemailer = require('nodemailer');
|
||||||
|
|
||||||
if (process.env.NODE_ENV !== 'production') {
|
if (process.env.NODE_ENV !== 'production' || process.env.NODE_ENV !== 'testing') {
|
||||||
require('dotenv').config();
|
require('dotenv').config();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue