We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f097f64 commit ac8887bCopy full SHA for ac8887b
packages/e2e-tests/src/utils/consoleManager.ts
@@ -41,13 +41,8 @@ export class ConsoleManager {
41
42
getLogs = async (): Promise<ConsoleLogEntry[]> => ConsoleManager.capturedLogs;
43
44
- getLogsAsString = async (): Promise<string | undefined> => {
45
- let logs;
46
- for (const log of ConsoleManager.capturedLogs) {
47
- logs = `${logs} ${JSON.stringify(log)}`;
48
- }
49
- return logs;
50
- };
+ getLogsAsString = async (): Promise<string | undefined> =>
+ ConsoleManager.capturedLogs.map(({ text }) => text).join('\n');
51
52
closeOpenedCdpSessions = async (): Promise<void> => {
53
await this.clearLogs();
0 commit comments