mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-22 05:07:05 +00:00
fixes e2e tests (#3817)
- fix newsfeed and calendar e2e tests so they don't need `--forceExit` anymore - `--forceExit` should stay in test runs to avoid running until test limit in case of errors - remove mocking console, not needed anymore - configFactory-stuff should not run in browser (otherwise we get errors `[ReferenceError: exports is not defined]`)
This commit is contained in:
@@ -27,6 +27,7 @@ exports.startApplication = async (configFilename, exec) => {
|
||||
process.env.MM_CONFIG_FILE = configFilename;
|
||||
}
|
||||
process.env.mmTestMode = "true";
|
||||
process.setMaxListeners(0);
|
||||
if (exec) exec;
|
||||
global.app = require("../../../js/app");
|
||||
|
||||
|
Reference in New Issue
Block a user