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

Failure to work in conjunction with Cypress e2e testing #863

Open
Fy50167 opened this issue Nov 1, 2024 · 0 comments
Open

Failure to work in conjunction with Cypress e2e testing #863

Fy50167 opened this issue Nov 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Fy50167
Copy link

Fy50167 commented Nov 1, 2024

🔧 Summary

I currently have a pre-push hook with runs a suite of e2e tests from Cypress. When I manually type git push into my terminal lefthook will run and run my cypress test suite. However, when I try using the Sync changes button in the source control panel of vs code, it just loads infinitely. At first I thought the load time was because it was also running cypress, but the loading goes on infinitely. Is there some way to make lefthook compatible with the sync changes button?

Additionally, when I run git push, my entire cypress test suite runs and passes successsfully. However, at it passes, instead of the push going through I'll get this message:⠧ waiting: cypressConnection to github.com closed by remote host.

Then it'll go back to saying waiting for cypress, but this time it will just load indefinitely. Does anybody know why my testing doesn't terminate once everything passes?

Lefthook version

I'm not sure why but lefthook version -f gives me lefthook is not recognized. The hook is working correctly but the commands give me not rcognized.

Steps to reproduce

Configure lefthook to run a suite of cypress tests on pre-push. Then check whether the sync changes button to push in the source control terminal of vs code works. Additionally, run git push manually and check to see if the push completes successfully after testing succeeds.

Expected results

Cypress testing should complete and all committed changes should be pushed to the repo if successful; if unsuccessful, the push should fail.

Actual results

The Sync changes button in source control loads indefinitely, while the git push command will run the test suite but then load indefinitely after passing.

Possible Solution

N/A

Logs / Screenshots

LEFTHOOK_VERBOSE=true git ...
@Fy50167 Fy50167 added the bug Something isn't working label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant