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
|
2017-07-11 01:26:27 +08:00
|
|
|
import '../../src/promise-extensions';
|
2016-10-14 20:40:41 +08:00
|
|
|
|
2017-12-24 03:02:12 +08:00
|
|
|
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
|
2017-09-27 02:42:18 +08:00
|
|
|
// 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.
|
2017-09-27 02:55:33 +08:00
|
|
|
require('./spec-runner').default.runSpecs(loadSettings);
|