Skip to content

Commit

Permalink
test(examples): fixed examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mgordel committed Sep 20, 2023
1 parent 94dfdfd commit 88909e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/examples/examples.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`;
Expand Down

0 comments on commit 88909e0

Please sign in to comment.