mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
failing unit test
This commit is contained in:
@@ -11,7 +11,14 @@ global.expect = chai.expect;
|
||||
global.sinon = require('sinon');
|
||||
global.sandbox = sinon.sandbox.create();
|
||||
|
||||
import nconf from 'nconf';
|
||||
|
||||
//------------------------------
|
||||
// Load nconf for unit tests
|
||||
//------------------------------
|
||||
require('../../website/src/libs/api-v3/setupNconf')('./config.json.example');
|
||||
nconf.set('NODE_DB_URI', 'mongodb://localhost/habitrpg_test');
|
||||
// We require src/server and npt src/index because
|
||||
// 1. nconf is already setup
|
||||
// 2. we don't need clustering
|
||||
require('../../website/src/server');
|
||||
|
||||
Reference in New Issue
Block a user