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

16 lines
570 B
TypeScript
Raw Normal View History

2016-11-19 03:13:21 +08:00
/* 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();
2016-10-17 08:40:21 +08:00
2017-09-27 02:36:58 +08:00
const loadSettings = AppEnv.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
// AppEnv.initialize() must complete before `mailspring-exports` and other
2016-10-17 08:40:21 +08:00
// globals are available for import via es6 modules.
require('./spec-runner').default.runSpecs(loadSettings);