Skip to content

Commit

Permalink
fixes e2e tests running in docker container (#3485)
Browse files Browse the repository at this point in the history
which needs `address: "0.0.0.0"`

fixes #3479
  • Loading branch information
khassel authored Jun 27, 2024
1 parent f28b4bd commit 4aafa32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4aafa32

Please sign in to comment.