From 9331d9bb79145869cc83edc60a092c401cf67ca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ari=20Perkki=C3=B6?= Date: Sun, 22 Mar 2026 08:35:30 +0200 Subject: [PATCH] test: version check to pass with Node 22 --- test/run-command.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/run-command.test.ts b/test/run-command.test.ts index bcb7f2e..bfabcc9 100644 --- a/test/run-command.test.ts +++ b/test/run-command.test.ts @@ -8,7 +8,7 @@ test( async ({ webcontainer }) => { const output = await webcontainer.runCommand("node", ["--version"]); - expect(output).toContain("v20"); + expect(output).toMatch(/v2[0-9]/); }, ); @@ -16,7 +16,7 @@ test("user can run interactive commands inside webcontainer", async ({ webcontainer, }) => { const { exit, waitForText, write } = webcontainer.runCommand("node"); - await waitForText("Welcome to Node.js v20"); + await waitForText("Welcome to Node.js"); await write("console.log(20 + 19)\n"); await waitForText("39");