mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 03:39:55 +00:00
improve startApplication
This commit is contained in:
parent
ab7934fa98
commit
ae72ed8c67
@ -2,9 +2,7 @@ const jsdom = require("jsdom");
|
|||||||
|
|
||||||
exports.startApplication = function (configFilename, exec) {
|
exports.startApplication = function (configFilename, exec) {
|
||||||
jest.resetModules();
|
jest.resetModules();
|
||||||
if (global.app) {
|
this.stopApplication();
|
||||||
global.app.stop();
|
|
||||||
}
|
|
||||||
// Set config sample for use in test
|
// Set config sample for use in test
|
||||||
if (configFilename === "") {
|
if (configFilename === "") {
|
||||||
process.env.MM_CONFIG_FILE = "config/config.js";
|
process.env.MM_CONFIG_FILE = "config/config.js";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user