From 88909e0ec94649b6ceb75dd73e501c273c6e7131 Mon Sep 17 00:00:00 2001 From: Marcin Gordel Date: Wed, 20 Sep 2023 18:34:53 +0200 Subject: [PATCH] test(examples): fixed examples --- tests/examples/examples.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/examples/examples.test.ts b/tests/examples/examples.test.ts index 68d41b540..1eeb4841f 100644 --- a/tests/examples/examples.test.ts +++ b/tests/examples/examples.test.ts @@ -25,6 +25,7 @@ async function test(cmd: string, path: string, args: string[] = [], timeout = 18 const cwd = dirname(path); const spawnedExample = spawn(cmd, [file, ...args], { cwd }); spawnedExample.stdout?.setEncoding("utf-8"); + spawnedExample.stderr?.setEncoding("utf-8"); let error = ""; const timeoutId = setTimeout(() => { error = `Test timeout was reached after ${timeout} seconds.`;