-
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
Using createServer.listen() doesn't correctly detect used ports #281
Comments
I'm running into this issue. This bug breaks Jest in VSCode since the local server keeps running and different runs fail all the time. |
Should be working, be sure that the port jest-puppeteer.config.js module.exports = {
server: {
command: `npm start`,
port: 3000, // if set correctly should work
usedPortAction: 'ask'
},
exitOnPageError: false
} The |
Fixed in #518 |
🐛 Bug Report
getIsPortTaken
function doesn't seem to work correctly under macOS.To Reproduce
Steps to reproduce the behavior:
nc -l localhost 3000
to start a minimal server locallyjest-dev-server
on the same port with usedPortAction set to "ask"Expected behavior
It should ask
Link to repl or repo (highly encouraged)
Please provide a minimal repository on GitHub.
Issues without a reproduction link are likely to stall.
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: