mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
* start upgrade to node 8 * upgrade travis * improve travis * Remove bluebird, babel (except for modules) from server (WIP) (#9947) * remove bluebird, babel from server (except for modules) * fixes * fix path * fix path * fix export * fix export * fix test * fix tests * remove plugin for transform-object-rest-spread since it is supported in node8 * babel: correct syntax rest spread * remove bluebird * update migrations archive readme * fix package-lock.json * fix typo * add package-loc
20 lines
610 B
JavaScript
20 lines
610 B
JavaScript
/* eslint-disable no-undef */
|
|
/* eslint-disable global-require */
|
|
/* eslint-disable no-process-env */
|
|
|
|
//------------------------------
|
|
// Global modules
|
|
//------------------------------
|
|
global._ = require('lodash');
|
|
global.chai = require('chai');
|
|
chai.use(require('sinon-chai'));
|
|
chai.use(require('chai-as-promised'));
|
|
global.expect = chai.expect;
|
|
global.sinon = require('sinon');
|
|
let sinonStubPromise = require('sinon-stub-promise');
|
|
sinonStubPromise(global.sinon);
|
|
global.sandbox = sinon.sandbox.create();
|
|
|
|
import setupNconf from '../../website/server/libs/setupNconf';
|
|
setupNconf('./config.json.example');
|