fix(gatsby): fix the e2e for gatsby production (#5353)
fix the issue where gastby production serve does not get resolve
This commit is contained in:
parent
fb0411ee8f
commit
7063525851
@ -119,6 +119,16 @@ function runGatsbyServe(
|
||||
{ cwd: join(workspaceRoot, projectRoot) }
|
||||
);
|
||||
|
||||
childProcess.on('message', ({ action }: any) => {
|
||||
if (
|
||||
action?.type === 'LOG' &&
|
||||
action?.payload?.text?.includes(options.host) &&
|
||||
action?.payload?.text?.includes(options.port)
|
||||
) {
|
||||
resolve(true);
|
||||
}
|
||||
});
|
||||
|
||||
childProcess.on('error', (err) => {
|
||||
reject(err);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user