Mailspring/app/spec/n1-spec-runner/spec-bootstrap.es6
2017-09-26 11:46:00 -07:00

16 lines
615 B
JavaScript

/* eslint import/first: 0 */
// Swap out Node's native Promise for Bluebird, which allows us to
// do fancy things like handle exceptions inside promise blocks
import '../../src/promise-extensions';
import AppEnvConstructor from '../../src/app-env';
window.AppEnv = AppEnvConstructor.loadOrCreate();
AppEnv.initialize();
const loadSettings = AppEnv.getLoadSettings();
// This must be `required` instead of imported because
// AppEnv.initialize() must complete before `mailspring-exports` and other
// globals are available for import via es6 modules.
require('./n1-spec-runner').default.runSpecs(loadSettings);