don't apply configuration from dotfiles during testing

This commit is contained in:
Wyatt Johnson
2018-01-05 12:12:54 -07:00
parent c3970a46a2
commit 10754a65c6
+6 -3
View File
@@ -7,9 +7,12 @@
// entrypoint for the entire applications configuration.
require('env-rewrite').rewrite();
// Apply all the configuration provided in the .env file if it isn't already
// in the environment.
require('dotenv').config();
if (process.env.NODE_ENV !== 'test') {
// Apply all the configuration provided in the .env file if it isn't already
// in the environment.
require('dotenv').config();
}
const uniq = require('lodash/uniq');
const ms = require('ms');