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

15 lines
570 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 AppEnvClass from '../../src/app-env';
window.AppEnv = new AppEnvClass();
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('./spec-runner').default.runSpecs(loadSettings);