We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de3b9aa commit 1c660e9Copy full SHA for 1c660e9
1 file changed
example/index.spec.ts
@@ -10,11 +10,13 @@ import { readFile } from "node:fs/promises";
10
describe("System test for Example", async () => {
11
let out = "";
12
const listener = (chunk: Buffer) => {
13
+ console.log(chunk.toString());
14
out += chunk.toString();
15
};
16
const matchOut = (regExp: RegExp) => regExp.test(out);
17
const example = spawn("tsx", ["index.ts"]);
18
example.stdout.on("data", listener);
19
+ example.stderr.on("data", listener);
20
const port = givePort("example");
21
await vi.waitFor(() => assert(out.includes(`Listening`)), { timeout: 1e4 });
22
0 commit comments