You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting the development server...
Error: server closed unexpectedly
at ChildProcess.onClose (/Users/foo/project/node_modules/start-server-and-test/src/index.js:69:14)
at ChildProcess.emit (events.js:314:20)
at maybeClose (internal/child_process.js:1047:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
error Command failed with exit code 1.
Fun fact: 'pre-push': 'sleep 10' does wait for 10 seconds before pushing to a git server. And time yarn start-server-and-test start http-get://localhost:3000 cy:run also confirms that the command works on its own and doesn't return to the terminal until the tests are done. But husky and start-server-and-test together somehow don't work. I also tried 'pre-push': 'bash -c "yarn start-server-and-test start http-get://localhost:3000 cy:run"' - that changed nothing.
The text was updated successfully, but these errors were encountered:
Is this a bug report or a feature request?
If this is a bug report, please provide as much info as possible
I test a
create-react-app
-based app.With this code in
husky.config.js
I expect to run Cypress tests on
git push
.Fun fact:
'pre-push': 'sleep 10'
does wait for 10 seconds before pushing to a git server. Andtime yarn start-server-and-test start http-get://localhost:3000 cy:run
also confirms that the command works on its own and doesn't return to the terminal until the tests are done. But husky and start-server-and-test together somehow don't work. I also tried'pre-push': 'bash -c "yarn start-server-and-test start http-get://localhost:3000 cy:run"'
- that changed nothing.The text was updated successfully, but these errors were encountered: