Skip to content

Commit f600aa3

Browse files
committed
log the stdout and stderr of child process
1 parent 34c8fe2 commit f600aa3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packages/render/integrations/integrations.spec.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ const startWebServer = async (command: string, url: string, cwd: string) => {
6060
stdio: 'pipe',
6161
});
6262

63+
child.stdout.on('data', (data) => {
64+
console.log(data);
65+
});
66+
child.stderr.on('data', (data) => {
67+
console.error(data);
68+
});
69+
6370
process.on('exit', () => {
6471
child.kill();
6572
});
@@ -68,7 +75,7 @@ const startWebServer = async (command: string, url: string, cwd: string) => {
6875
child.kill('SIGINT');
6976
});
7077

71-
await waitForServer(url, 60_000);
78+
await waitForServer(url, 30_000);
7279

7380
return child;
7481
};
@@ -106,7 +113,7 @@ describe('integrations', () => {
106113
'http://localhost:3000',
107114
nextLocation,
108115
);
109-
}, 60_000);
116+
}, 30_000);
110117

111118
afterAll(async () => {
112119
devServer?.kill();

0 commit comments

Comments
 (0)