From ae72ed8c67ff26b1299d2ccb79ec01cf922fd10a Mon Sep 17 00:00:00 2001 From: Karsten Hassel Date: Fri, 27 May 2022 21:49:29 +0200 Subject: [PATCH] improve startApplication --- tests/e2e/global-setup.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/e2e/global-setup.js b/tests/e2e/global-setup.js index 37e3315a..9ffa3284 100644 --- a/tests/e2e/global-setup.js +++ b/tests/e2e/global-setup.js @@ -2,9 +2,7 @@ const jsdom = require("jsdom"); exports.startApplication = function (configFilename, exec) { jest.resetModules(); - if (global.app) { - global.app.stop(); - } + this.stopApplication(); // Set config sample for use in test if (configFilename === "") { process.env.MM_CONFIG_FILE = "config/config.js";