mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-20 17:11:30 +00:00
config file for tests
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
require('app-module-path').addPath('./server');
|
||||
|
||||
const config = require('nconf')
|
||||
.argv()
|
||||
.env({ lowerCase: true })
|
||||
.file('testing', { file: `test/config.json` })
|
||||
.file('environment', { file: `config/${process.env.NODE_ENV}.json` })
|
||||
.file('defaults', { file: 'config/default.json' });
|
||||
|
||||
const should = require('chai').use(require('chai-as-promised')).should();
|
||||
const log = require('loglevel');
|
||||
log.setLevel('trace');
|
||||
log.setLevel(config.get('log_level'));
|
||||
|
||||
module.exports = {
|
||||
should: should
|
||||
|
||||
Reference in New Issue
Block a user