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

Allow HAPPO_GITHUB_USER_CREDENTIALS to work with async comparisons #335

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lencioni
Copy link
Contributor

We recently made some adjstuments that allow for this to work with async comparisons made by Playwright and Cypress. More info:

happo/happo-e2e#71

I thin this means that we can also modify this code so it will work with async comparisons produced by this package.

While I was in here I also refactored these commands to set process.exitCode instead of calling process.exit() which can interrupt in-flight asynchronous work including writing to stdout/stderr. Since these are all in the top-level commands, I think returning normally will have the same result for the end user as process.exit() would have.

We recently made some adjstuments that allow for this to work with async
comparisons made by Playwright and Cypress. More info:

happo/happo-e2e#71

I thin this means that we can also modify this code so it will work with
async comparisons produced by this package.

While I was in here I also refactored these commands to set
`process.exitCode` instead of calling `process.exit()` which can
interrupt in-flight asynchronous work including writing to
stdout/stderr. Since these are all in the top-level commands, I think
returning normally will have the same result for the end user as
`process.exit()` would have.
@lencioni lencioni requested a review from trotzig March 12, 2025 16:02
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.

2 participants