diff --git a/packages/e2e-tests/src/utils/consoleManager.ts b/packages/e2e-tests/src/utils/consoleManager.ts index 9ffa9d138..f18dffe8d 100644 --- a/packages/e2e-tests/src/utils/consoleManager.ts +++ b/packages/e2e-tests/src/utils/consoleManager.ts @@ -41,13 +41,8 @@ export class ConsoleManager { getLogs = async (): Promise => ConsoleManager.capturedLogs; - getLogsAsString = async (): Promise => { - let logs; - for (const log of ConsoleManager.capturedLogs) { - logs = `${logs} ${JSON.stringify(log)}`; - } - return logs; - }; + getLogsAsString = async (): Promise => + ConsoleManager.capturedLogs.map(({ text }) => text).join('\n'); closeOpenedCdpSessions = async (): Promise => { await this.clearLogs();