From 677b9aad7d8f2d5723b97a8d291eb79025383a0d Mon Sep 17 00:00:00 2001 From: dmail Date: Tue, 13 Aug 2024 17:13:57 +0200 Subject: [PATCH] publish latestst --- packages/related/cli/package.json | 2 +- .../cli/template-node-package/package.json | 2 +- .../cli/template-web-components/package.json | 2 +- .../cli/template-web-preact/package.json | 2 +- .../cli/template-web-react/package.json | 2 +- .../related/cli/template-web/package.json | 2 +- packages/related/test/dist/jsenv_test.js | 44 ++++++++++--------- .../uses_port/uses_port.test.mjs | 2 +- 8 files changed, 30 insertions(+), 28 deletions(-) diff --git a/packages/related/cli/package.json b/packages/related/cli/package.json index fd8cb602dd..a85f63034c 100644 --- a/packages/related/cli/package.json +++ b/packages/related/cli/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/cli", - "version": "0.1.32", + "version": "0.1.33", "description": "Command Line Interface for jsenv", "license": "MIT", "repository": { diff --git a/packages/related/cli/template-node-package/package.json b/packages/related/cli/template-node-package/package.json index 8172177ca5..e99d261291 100644 --- a/packages/related/cli/template-node-package/package.json +++ b/packages/related/cli/template-node-package/package.json @@ -14,7 +14,7 @@ "@jsenv/assert": "4.4.0", "@jsenv/core": "39.3.12", "@jsenv/eslint-config-relax": "1.1.2", - "@jsenv/test": "3.4.2", + "@jsenv/test": "3.4.3", "eslint": "9.9.0", "prettier": "3.3.3" } diff --git a/packages/related/cli/template-web-components/package.json b/packages/related/cli/template-web-components/package.json index c1e0da9926..576f9ba720 100644 --- a/packages/related/cli/template-web-components/package.json +++ b/packages/related/cli/template-web-components/package.json @@ -22,7 +22,7 @@ "@jsenv/plugin-bundling": "2.7.7", "@jsenv/plugin-minification": "1.5.5", "@jsenv/eslint-config-relax": "1.1.2", - "@jsenv/test": "3.4.2", + "@jsenv/test": "3.4.3", "eslint": "9.9.0", "open": "10.1.0", "@playwright/browser-chromium": "1.46.0", diff --git a/packages/related/cli/template-web-preact/package.json b/packages/related/cli/template-web-preact/package.json index 5dbccd53d1..e864a986f7 100644 --- a/packages/related/cli/template-web-preact/package.json +++ b/packages/related/cli/template-web-preact/package.json @@ -26,7 +26,7 @@ "@jsenv/plugin-bundling": "2.7.7", "@jsenv/plugin-minification": "1.5.5", "@jsenv/eslint-config-relax": "1.1.2", - "@jsenv/test": "3.4.2", + "@jsenv/test": "3.4.3", "eslint": "9.9.0", "open": "10.1.0", "@playwright/browser-chromium": "1.46.0", diff --git a/packages/related/cli/template-web-react/package.json b/packages/related/cli/template-web-react/package.json index 67fbb2a70a..90347dec07 100644 --- a/packages/related/cli/template-web-react/package.json +++ b/packages/related/cli/template-web-react/package.json @@ -27,7 +27,7 @@ "@jsenv/plugin-bundling": "2.7.7", "@jsenv/plugin-minification": "1.5.5", "@jsenv/eslint-config-relax": "1.1.2", - "@jsenv/test": "3.4.2", + "@jsenv/test": "3.4.3", "eslint": "9.9.0", "open": "10.1.0", "@playwright/browser-chromium": "1.46.0", diff --git a/packages/related/cli/template-web/package.json b/packages/related/cli/template-web/package.json index 8eb2da969b..77caf87232 100644 --- a/packages/related/cli/template-web/package.json +++ b/packages/related/cli/template-web/package.json @@ -20,7 +20,7 @@ "@jsenv/eslint-config-relax": "1.1.2", "@jsenv/plugin-bundling": "2.7.7", "@jsenv/plugin-minification": "1.5.5", - "@jsenv/test": "3.4.2", + "@jsenv/test": "3.4.3", "eslint": "9.9.0", "open": "10.1.0", "@playwright/browser-chromium": "1.46.0", diff --git a/packages/related/test/dist/jsenv_test.js b/packages/related/test/dist/jsenv_test.js index f45c12f445..9c2b0dea23 100644 --- a/packages/related/test/dist/jsenv_test.js +++ b/packages/related/test/dist/jsenv_test.js @@ -4143,26 +4143,28 @@ const formatErrorForTerminal = ( error.site.url.startsWith("file:") && typeof error.site.line === "number" ) { - const content = readFileSync(new URL(error.site.url), "utf8"); - text += generateContentFrame({ - content, - line: error.site.line, - column: error.site.column, - linesAbove: 2, - linesBelow: 0, - lineMaxWidth: process.stdout.columns, - format: (string, type) => { - return { - line_number_aside: () => ANSI.color(string, ANSI.GREY), - char: () => string, - marker_overflow_left: () => ANSI.color(string, ANSI.GREY), - marker_overflow_right: () => ANSI.color(string, ANSI.GREY), - marker_line: () => ANSI.color(string, ANSI.RED), - marker_column: () => ANSI.color(string, ANSI.RED), - }[type](); - }, - }); - text += `\n`; + try { + const content = readFileSync(new URL(error.site.url), "utf8"); + text += generateContentFrame({ + content, + line: error.site.line, + column: error.site.column, + linesAbove: 2, + linesBelow: 0, + lineMaxWidth: process.stdout.columns, + format: (string, type) => { + return { + line_number_aside: () => ANSI.color(string, ANSI.GREY), + char: () => string, + marker_overflow_left: () => ANSI.color(string, ANSI.GREY), + marker_overflow_right: () => ANSI.color(string, ANSI.GREY), + marker_line: () => ANSI.color(string, ANSI.RED), + marker_column: () => ANSI.color(string, ANSI.RED), + }[type](); + }, + }); + text += `\n`; + } catch {} } } text += `${error.name}: ${error.message}`; @@ -5576,7 +5578,7 @@ 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/test_plan_execution/uses_port/uses_port.test.mjs b/packages/related/test/tests/test_plan_execution/uses_port/uses_port.test.mjs index c7c4fa3dea..56f16afa41 100644 --- a/packages/related/test/tests/test_plan_execution/uses_port/uses_port.test.mjs +++ b/packages/related/test/tests/test_plan_execution/uses_port/uses_port.test.mjs @@ -10,7 +10,7 @@ const run = async (inlineExec) => { uses: desc.uses, runtime: inlineRuntime(async () => { callOrder.push(`${key}_start`); - await new Promise((resolve) => setTimeout(resolve, 500)); + await new Promise((resolve) => setTimeout(resolve, 800)); callOrder.push(`${key}_end`); }), };