Skip to content

Commit cea2c37

Browse files
committed
start streaming cypress stdout/stderr early, to display potential errors if Cypress fails to start
1 parent 663b45d commit cea2c37

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/poller.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default class Poller {
5353
}
5454

5555
public async check(id: number, spinner: ora.Ora): Promise<IPollResponse> {
56+
this.runner.onReady();
5657
return new Promise((resolve, reject) => {
5758
this.intervalId = setInterval(async () => {
5859
const response = await this.getApiResponse(id);
@@ -107,8 +108,6 @@ export default class Poller {
107108
log.info(`Cypress Job started.
108109
View results on https://testingbot.com/members/builds/${response.build_id}`);
109110
}
110-
111-
this.runner.onReady();
112111
}
113112

114113
this.retryNumber += 1;

0 commit comments

Comments
 (0)