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

Husky pre-push fails when used with source control #1534

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

Husky pre-push fails when used with source control #1534

Fy50167 opened this issue Nov 1, 2024 · 0 comments

Comments

@Fy50167
Copy link

Fy50167 commented Nov 1, 2024

Context
Please describe your issue and provide some context:
The issue takes place within VS Code in a react native application. I'm trying to run a suit of Cypress e2e tests on every push using husky; here are the contents of my pre-push file:
npm run cypress:run > husky-output.log 2>&1
This seems to be correct since when I manually push to my remote by using git push the tests properly run; the progress of the tests doesn't get logged to my terminal like normal but I can find it in the output log afterwards and I can also see various screenshots and videos being created and deleted while the tests are running (this is intended). However, if I try to push to the remote by using the Sync changes button in the source control panel of VS code, it will essentially an infinitely long loading timer. My tests take around 6-7 minutes to finish running, but I've left the sync changes button alone and it will still be loading 30 minutes after. Additionally, it doesn't generate any screenshots or videos which makes me think that the tests are being ran at all. I'm not too sure what differences there are between the sync changes button and git push that would be causing this issue.

Thank you!

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

No branches or pull requests

1 participant