Fixed mock-express test setup

refs https://github.com/TryGhost/Toolbox/issues/152

- The tests would fail without these initializations when run in isolation
This commit is contained in:
Naz 2021-12-01 18:56:29 +04:00
parent ea50944897
commit 57de4aca71

View File

@ -52,6 +52,10 @@ module.exports = {
await settingsService.init();
urlServiceUtils.init();
const customRedirects = require('../../../../core/server/services/redirects');
await customRedirects.init();
const routeSettings = require('../../../../core/server/services/route-settings');
await routeSettings.init();
const customThemeSettingsService = require('../../../../core/server/services/custom-theme-settings');
customThemeSettingsService.init();
const themeService = require('../../../../core/server/services/themes');