-
Notifications
You must be signed in to change notification settings - Fork 289
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
Enabling spawned server output (stdout, stderr) for debugging #44
Comments
I'm happy to create a PR for this if there's interest. |
Yes I would be happy to have that feature, also I think we should be able to define a timeout to avoid waiting forever. Can you do this? Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a server command is specified in
jest-puppeteer.config.js
but for some reason e.g. misconfigured port etc. we cannot connect to the spawned server, Jest will just hang forever in a stateDetermining test suites to run...
Actually when the ports are not matching this it waits forever for the port to be opened:
Adding e.g. a
debug
option to the server config could help developers to find out what's causing the issue e.g.The implementation is simple, the spawned child process needs listeners on both
stdout
andstderr
so that we can console.log whatever happens in there:Also the
output: 'silent'
option ofwait-port
could be turned off to show that we're actually waiting for the port to be opened.The text was updated successfully, but these errors were encountered: