From 57de4aca719e35c32319e55c371d1f311f945582 Mon Sep 17 00:00:00 2001 From: Naz Date: Wed, 1 Dec 2021 18:56:29 +0400 Subject: [PATCH] Fixed mock-express test setup refs https://github.com/TryGhost/Toolbox/issues/152 - The tests would fail without these initializations when run in isolation --- test/regression/mock-express-style/utils/setup.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/regression/mock-express-style/utils/setup.js b/test/regression/mock-express-style/utils/setup.js index 511140ece3..f4048b62cc 100644 --- a/test/regression/mock-express-style/utils/setup.js +++ b/test/regression/mock-express-style/utils/setup.js @@ -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');