Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: close browser after run and throw errors #211

Merged
merged 1 commit into from
Jun 29, 2022

Conversation

ergunsh
Copy link
Collaborator

@ergunsh ergunsh commented Jun 29, 2022

I was experimenting with using @puppeteer/replay library in CI and these two issues need to be fixed for it to be useful in those contexts.

  • We need to close the browser so that process
    exits at the end of the runs
  • We need to throw the error so that process
    exits with exit code 1 when the replay
    was not successful

@ergunsh ergunsh requested a review from OrKoN June 29, 2022 08:42
@ergunsh ergunsh changed the title Close browser after run and throw errors fix: close browser after run and throw errors Jun 29, 2022
@conventional-commit-lint-gcf
Copy link

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

src/CLIUtils.ts Show resolved Hide resolved
@ergunsh ergunsh force-pushed the close-browser-after-cli-run branch 2 times, most recently from 689707e to a386259 Compare June 29, 2022 08:45
@ergunsh ergunsh enabled auto-merge (squash) June 29, 2022 08:46
@ergunsh ergunsh force-pushed the close-browser-after-cli-run branch from a386259 to 0596787 Compare June 29, 2022 08:48
* We need to close the browser so that process
exits at the end of the runs
* We need to throw the error so that process
exits with exit code 1 when the replay
was not successful
@ergunsh ergunsh force-pushed the close-browser-after-cli-run branch from 0596787 to 369c823 Compare June 29, 2022 08:56
@ergunsh ergunsh merged commit 95a1575 into main Jun 29, 2022
@ergunsh ergunsh deleted the close-browser-after-cli-run branch June 29, 2022 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants