diff --git a/core/server/web/parent/app.js b/core/server/web/parent/app.js index 5533cc2662..587ebe1fab 100644 --- a/core/server/web/parent/app.js +++ b/core/server/web/parent/app.js @@ -8,10 +8,10 @@ const vhost = require('@tryghost/vhost-middleware'); /** * @param {Object} options * @param {Boolean} [options.start] - * @param {Boolean} options.withBackend - * @param {Boolean} options.withFrontend + * @param {Boolean} [options.withBackend] + * @param {Boolean} [options.withFrontend] */ -module.exports = function setupParentApp({start, withFrontend, withBackend}) { +module.exports = function setupParentApp({start, withFrontend = true, withBackend = true}) { debug('ParentApp setup start'); const parentApp = express('parent'); diff --git a/test/regression/mock-express-style/utils/setup.js b/test/regression/mock-express-style/utils/setup.js index 5ffd75ec03..511140ece3 100644 --- a/test/regression/mock-express-style/utils/setup.js +++ b/test/regression/mock-express-style/utils/setup.js @@ -59,7 +59,9 @@ module.exports = { const helperService = require('../../../../core/frontend/services/helpers'); await helperService.init(); - const app = siteApp({start: true}); + const app = siteApp({ + start: true + }); await appService.init(); await urlServiceUtils.isFinished();