fixes e2e tests running in docker container (#3485)

which needs `address: "0.0.0.0"`

fixes #3479
This commit is contained in:
Karsten Hassel
2024-06-27 10:38:29 +02:00
committed by GitHub
parent f28b4bd709
commit 4aafa32875
2 changed files with 5 additions and 0 deletions

View File

@@ -58,6 +58,10 @@ function App () {
async function loadConfig () {
Log.log("Loading config ...");
const defaults = require(`${__dirname}/defaults`);
if (process.env.JEST_WORKER_ID !== undefined) {
// if we are running with jest
defaults.address = "0.0.0.0";
}
// For this check proposed to TestSuite
// https://forum.magicmirror.builders/topic/1456/test-suite-for-magicmirror/8