diff --git a/config.js b/config.js index 0d6643269..e617b93e8 100644 --- a/config.js +++ b/config.js @@ -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');