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");