Skip to content

Commit

Permalink
fix(test-utils): logging in BrowserDriver (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress authored Mar 8, 2024
1 parent e1192bb commit 058ed60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/test-utils/src/browser-automation/browser-driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class BrowserDriver {
}
this.browser = await puppeteer.launch(puppeteerOptions);
const browserVersion = await this.browser.version();
this.logger.log(`Launched browser version ${browserVersion}`);
this.logger.log(`Launched browser version ${browserVersion}`)();
}

async openPage(options?: {
Expand Down Expand Up @@ -149,7 +149,7 @@ export default class BrowserDriver {
await this.stopServer();
process.exit(statusCode);
} catch (error) {
this.logger.error(error instanceof Error ? error.message : String(error));
this.logger.error(error instanceof Error ? error.message : String(error))();
process.exit(1);
}
}
Expand Down

0 comments on commit 058ed60

Please sign in to comment.