Ghost/ghost/admin/tests/test-helper.js

27 lines
654 B
JavaScript
Raw Normal View History

import Application from 'ghost-admin/app';
import config from 'ghost-admin/config/environment';
import registerWaiter from 'ember-raf-scheduler/test-support/register-waiter';
2019-05-13 17:33:36 +03:00
import start from 'ember-exam/test-support/start';
import {setApplication} from '@ember/test-helpers';
import chai from 'chai';
import chaiDom from 'chai-dom';
chai.use(chaiDom);
// stub loaded external module to avoid loading of external dep
window['@tryghost/koenig-lexical'] = {
KoenigComposer: () => null,
KoenigEditor: () => null
};
setApplication(Application.create(config.APP));
registerWaiter();
mocha.setup({
timeout: 15000,
slow: 500
});
start();