2016-11-19 03:13:21 +08:00
|
|
|
/* eslint import/first: 0 */
|
2016-11-16 02:20:39 +08:00
|
|
|
|
2016-10-14 20:40:41 +08:00
|
|
|
// Swap out Node's native Promise for Bluebird, which allows us to
|
|
|
|
// do fancy things like handle exceptions inside promise blocks
|
|
|
|
global.Promise = require('bluebird');
|
|
|
|
Promise.longStackTraces();
|
|
|
|
|
2016-10-17 06:01:51 +08:00
|
|
|
import NylasEnvConstructor from '../../src/nylas-env';
|
2016-10-17 02:56:28 +08:00
|
|
|
window.NylasEnv = NylasEnvConstructor.loadOrCreate();
|
2016-10-17 08:40:21 +08:00
|
|
|
|
2016-10-17 04:11:36 +08:00
|
|
|
NylasEnv.initialize();
|
2016-10-17 08:40:21 +08:00
|
|
|
const loadSettings = NylasEnv.getLoadSettings();
|
2016-10-15 04:33:27 +08:00
|
|
|
|
2016-10-17 08:40:21 +08:00
|
|
|
// This must be `required` instead of imported because
|
|
|
|
// NylasEnv.initialize() must complete before `nylas-exports` and other
|
|
|
|
// globals are available for import via es6 modules.
|
|
|
|
require('./n1-spec-runner').default.runSpecs(loadSettings)
|