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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -34,6 +34,7 @@ Thanks to: @kleinmantara (to be continued before release)
- [weather] Fixed type=daily for provider openmeteo having no data when running after 23:00 (#3449)
- [weather] Fixed type=daily for provider openmeteo showing nightly icons in forecast when current time is "nightly" (#3458)
- [weather] Fixed forecast and hourly weather for provider openmeteo to use real temperatures, not apparent temperatures
- [tests] Fixed e2e tests running in docker container which needs `address: "0.0.0.0"` (#3479)
## [2.27.0] - 2024-04-01

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