mirror of
https://github.com/wassname/talk.git
synced 2026-07-07 23:11:14 +08:00
don't apply configuration from dotfiles during testing
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user