Skip to content

Commit

Permalink
Add a trailing log line in case another playwright reporter removes o…
Browse files Browse the repository at this point in the history
…ur last line
  • Loading branch information
hbenl committed Jul 9, 2024
1 parent 190165f commit 1570205
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/empty-brooms-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@replayio/playwright": patch
---

Add a trailing log line in case another playwright reporter removes our last line
2 changes: 2 additions & 0 deletions packages/playwright/src/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,8 @@ export default class ReplayPlaywrightReporter implements Reporter {
console.warn(`[replay.io]: ${line}`);
});
}

console.log("[replay.io]:");
} finally {
await Promise.all([mixpanelAPI.close().catch(noop), logger.close().catch(noop)]);
}
Expand Down

0 comments on commit 1570205

Please sign in to comment.