Mailspring/spec/n1-spec-runner/spec-bootstrap.es6

16 lines
619 B
Plaintext
Raw Normal View History

// 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();
import NylasEnvConstructor from '../../src/nylas-env';
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)