diff --git a/packages/independent/custom-elements-redefine/scripts/dev.mjs b/packages/independent/custom-elements-redefine/scripts/dev.mjs index 1ec59ef249..d982e52599 100644 --- a/packages/independent/custom-elements-redefine/scripts/dev.mjs +++ b/packages/independent/custom-elements-redefine/scripts/dev.mjs @@ -2,6 +2,7 @@ import { startDevServer } from "@jsenv/core"; import { jsenvPluginExplorer } from "@jsenv/plugin-explorer"; export const devServer = await startDevServer({ + hostname: "127.0.0.1", sourceDirectoryUrl: new URL("../src/", import.meta.url), port: 3459, clientAutoreload: false, diff --git a/packages/independent/custom-elements-redefine/scripts/test.mjs b/packages/independent/custom-elements-redefine/scripts/test.mjs index 38e528531e..33c79804b3 100644 --- a/packages/independent/custom-elements-redefine/scripts/test.mjs +++ b/packages/independent/custom-elements-redefine/scripts/test.mjs @@ -18,7 +18,7 @@ await executeTestPlan({ }, }, webServer: { - origin: "http://localhost:3459", + origin: "http://127.0.0.1:3459", moduleUrl: new URL("./dev.mjs", import.meta.url), }, githubCheck: false, diff --git a/packages/related/test/src/execution/web_server/start_using_command.js b/packages/related/test/src/execution/web_server/start_using_command.js index 05557acf58..71286445f8 100644 --- a/packages/related/test/src/execution/web_server/start_using_command.js +++ b/packages/related/test/src/execution/web_server/start_using_command.js @@ -117,7 +117,7 @@ export const startServerUsingCommand = async ( if (timeoutAbortSource.signal.aborted) { // aborted by timeout throw new Error( - `"${webServer.command}" command did not start a server in less than ${allocatedMs}ms`, + `"${webServer.command}" command did not start a server at ${webServer.origin} in less than ${allocatedMs}ms`, ); } if (signal.aborted) { diff --git a/packages/related/test/tests/__internal__/web_server_command/web_server_command.test.mjs b/packages/related/test/tests/__internal__/web_server_command/web_server_command.test.mjs index 0cb071a6d6..7443854f1b 100644 --- a/packages/related/test/tests/__internal__/web_server_command/web_server_command.test.mjs +++ b/packages/related/test/tests/__internal__/web_server_command/web_server_command.test.mjs @@ -20,7 +20,7 @@ import { fileURLToPath } from "node:url"; } catch (e) { const actual = e; const expect = new Error( - `"${webServer.command}" command did not start a server in less than 500ms`, + `"${webServer.command}" command did not start a server at http://localhost:3459 in less than 500ms`, ); assert({ actual, expect }); } @@ -43,7 +43,7 @@ import { fileURLToPath } from "node:url"; } catch (e) { const actual = e; const expect = new Error( - `"${webServer.command}" command did not start a server in less than 500ms`, + `"${webServer.command}" command did not start a server at http://localhost:3459 in less than 500ms`, ); assert({ actual, expect }); } @@ -68,7 +68,7 @@ import { fileURLToPath } from "node:url"; } catch (e) { const actual = e; const expect = new Error( - `"${webServer.command}" command did not start a server in less than 500ms`, + `"${webServer.command}" command did not start a server at http://localhost:3459 in less than 500ms`, ); assert({ actual, expect }); } diff --git a/packages/related/test/tests/__internal__/web_server_module_url/web_server_module_url.test.mjs b/packages/related/test/tests/__internal__/web_server_module_url/web_server_module_url.test.mjs index 9a41cd4345..30c65df131 100644 --- a/packages/related/test/tests/__internal__/web_server_module_url/web_server_module_url.test.mjs +++ b/packages/related/test/tests/__internal__/web_server_module_url/web_server_module_url.test.mjs @@ -45,7 +45,7 @@ import { ensureWebServerIsStarted } from "@jsenv/test/src/execution/web_server_p const actual = e.message; const expect = `"node ${fileURLToPath( webServer.moduleUrl, - )}" command did not start a server in less than 500ms`; + )}" command did not start a server at http://localhost:9961 in less than 500ms`; assert({ actual, expect }); } } @@ -69,7 +69,7 @@ import { ensureWebServerIsStarted } from "@jsenv/test/src/execution/web_server_p const expect = new Error( `"node ${fileURLToPath( webServer.moduleUrl, - )}" command did not start a server in less than 500ms`, + )}" command did not start a server at http://localhost:9962 in less than 500ms`, ); assert({ actual, expect }); }