-
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
jest-dev-server port detection is not working #460
Comments
I've tested the minimal example with jest@27.0.0 and jest@26.6.3 and it fails then too :( |
I also can't get the expected behaviour with jest-dev-server@6.0.0 or jest-dev-server@5.0.3 (with jest@27.4.3). Can't get the expected behaviour with jest-dev-server@5.0.3 and jest@26 either, which I'm sure I've seen working before. Maybe it's something in a sub-dependency somewhere? |
The issue with jest@26 might be related to #421 |
I've made a more minimal example that doesn't include jest at all: https://github.com/lfdebrux/test-jest-dev-server/tree/no-jest The really strange thing is that on my machine the log message
I'm not sure what this means. It's possible that its a macOS thing, I haven't tested on other systems. |
Just chiming in to say that I have this issue on my Macbook but not my other laptop running Linux, which might confirm the previous commenter's suspicion that this is a macOS thing. |
🐛 Bug Report
I think (unless I've misconfigured something) that with the latest version of jest if you have a process running already on the server port then the port detection won't happen, and tests and jest-dev-server will try to continue anyway.
To Reproduce
Steps to reproduce the behavior:
npx http-server -p 3000
npx jest
Expected behavior
In the past jest-dev-server has prompted the user whether they want to kill the existing process.
Link to repl or repo (highly encouraged)
Repo with minimal example:
https://github.com/lfdebrux/test-jest-dev-server
Run
npx envinfo --system --binaries --npmPackages expect-puppeteer,jest-dev-server,jest-environment-puppeteer,jest-puppeteer,spawnd --markdown --clipboard
Paste the results here:
The text was updated successfully, but these errors were encountered: