From 8823bf939ab4a8e00f1686b311056e5b088589dc Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 13 Feb 2024 15:37:44 +0300 Subject: [PATCH] wip: tests --- vscode-web/main.test.ts | 10 +++++----- vscode-web/run.sh | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/vscode-web/main.test.ts b/vscode-web/main.test.ts index 57277df..2e992e5 100644 --- a/vscode-web/main.test.ts +++ b/vscode-web/main.test.ts @@ -40,8 +40,8 @@ describe("vscode-web", async () => { const output = await executeScriptInContainer(state, "alpine"); expect(output.exitCode).toBe(1); expect(output.stdout).toEqual([ - "\u001b[0;1mInstalling vscode-cli!", - "Failed to install vscode-cli:", // TODO: manually test error log + "\u001b[0;1mInstalling Microsoft Visual Studio Code Server!", + "Failed to install vscode-server:", // TODO: manually test error log ]); }); @@ -53,10 +53,10 @@ describe("vscode-web", async () => { const output = await executeScriptInContainer(state, "alpine/curl"); expect(output.exitCode).toBe(0); expect(output.stdout).toEqual([ - "\u001b[0;1mInstalling vscode-cli!", - "🥳 vscode-cli has been installed.", + "\u001b[0;1mInstalling Microsoft Visual Studio Code Server!", + "🥳 vscode-server has been installed.", "", - "👷 Running /tmp/vscode-cli/bin/code serve-web --port 13338 --without-connection-token --accept-server-license-terms in the background...", + "👷 Running /tmp/vscode-web/bin/code-server serve-local --port 13338 --accept-server-license-terms serve-local --without-connection-token --telemetry-level error in the background...", "Check logs at /tmp/vscode-web.log!", ]); }); diff --git a/vscode-web/run.sh b/vscode-web/run.sh index d260615..851c958 100644 --- a/vscode-web/run.sh +++ b/vscode-web/run.sh @@ -26,7 +26,7 @@ if [ $? -ne 0 ]; then echo "Failed to install vscode-server: $output" exit 1 fi -echo "🥳 vscode-server has been installed in ${INSTALL_PREFIX}\n" +echo "🥳 vscode-server has been installed." VSCODE_SERVER="${INSTALL_PREFIX}/bin/code-server" @@ -44,6 +44,6 @@ for extension in "$${EXTENSIONLIST[@]}"; do fi done -echo "👷 Running ${INSTALL_PREFIX}/bin/code-server" +echo "👷 Running ${INSTALL_PREFIX}/bin/code-server serve-local --port ${PORT} --accept-server-license-terms serve-local --without-connection-token --telemetry-level ${TELEMETRY_LEVEL} in the background..." echo "Check logs at ${LOG_PATH}!" ${INSTALL_PREFIX}/bin/code-server serve-local --port ${PORT} --accept-server-license-terms serve-local --without-connection-token --telemetry-level ${TELEMETRY_LEVEL} > ${LOG_PATH} 2>&1 &