Skip to content

Commit cae5ff5

Browse files
committed
Print stdout & stderr during integration test to help with debugging
1 parent 73b16dd commit cae5ff5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/integration-test.spec.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,14 @@ describe('Integration test', function () {
2020
stdout = "";
2121
stderr = "";
2222

23-
serverProcess.stdout.on('data', (d) => stdout = stdout + d.toString());
24-
serverProcess.stderr.on('data', (d) => stderr = stderr + d.toString());
23+
serverProcess.stdout.on('data', (d) => {
24+
stdout = stdout + d.toString();
25+
console.log(d.toString());
26+
});
27+
serverProcess.stderr.on('data', (d) => {
28+
stderr = stderr + d.toString();
29+
console.warn(d.toString());
30+
});
2531

2632
// In CI, this takes much longer than locally, so wait a little.
2733
await delay(process.env.CI ? 10000 : 2000);

0 commit comments

Comments
 (0)