mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 01:26:29 -04:00
improve startApplication
This commit is contained in:
parent
ab7934fa98
commit
ae72ed8c67
1 changed files with 1 additions and 3 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue