Skip to content

Commit 1c660e9

Browse files
committed
Debugging example test in CI.
1 parent de3b9aa commit 1c660e9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

example/index.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ import { readFile } from "node:fs/promises";
1010
describe("System test for Example", async () => {
1111
let out = "";
1212
const listener = (chunk: Buffer) => {
13+
console.log(chunk.toString());
1314
out += chunk.toString();
1415
};
1516
const matchOut = (regExp: RegExp) => regExp.test(out);
1617
const example = spawn("tsx", ["index.ts"]);
1718
example.stdout.on("data", listener);
19+
example.stderr.on("data", listener);
1820
const port = givePort("example");
1921
await vi.waitFor(() => assert(out.includes(`Listening`)), { timeout: 1e4 });
2022

0 commit comments

Comments
 (0)