Failure to work in conjunction with Cypress e2e testing
Opened this issue · 0 comments
🔧 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 ...