jest-dev-server can't detect used ports since 4.1.1
See original GitHub issue💥 Regression Report
Since the latest release (4.1.1), jest-puppeteer will timeout when trying to detect if a port is used. I was able to narrow it down to the changes in jest-dev-server introduced in #227.
Last working version
Worked up to version: jest-dev-server@4.0.0
Stopped working in version: jest-dev-server@4.1.1
To Reproduce
Steps to reproduce the behavior:
- Start an
expressserver on port3000 - Set the
server.portto3000in thejest-puppeteer.config.jsfile jest
Expected behavior
jest-puppeteer should be able to detect if the port is used, and the tests should pass.
Link to repl or repo (highly encouraged)
https://github.com/Dilatorily/jest-puppeteer-issue
Run npx envinfo --system --binaries --npmPackages expect-puppeteer,jest-dev-server,jest-environment-puppeteer,jest-puppeteer,spawnd --markdown --clipboard
Paste the results here:
## System:
- OS: macOS Sierra 10.12.6
- CPU: (4) x64 Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
- Memory: 2.71 GB / 16.00 GB
- Shell: 3.2.57 - /bin/bash
## Binaries:
- Node: 11.14.0 - /usr/local/bin/node
- Yarn: 1.15.2 - /usr/local/bin/yarn
- npm: 6.9.0 - /usr/local/bin/npm
- Watchman: 4.9.0 - /usr/local/bin/watchman
## npmPackages:
- jest-puppeteer: ^4.1.1 => 4.1.1
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:7 (3 by maintainers)
Top Results From Across the Web
jest-dev-server | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >jest-dev-server - UNPKG
jest -dev-server/CHANGELOG.md ; 51 ; 52, * jest-dev-server can't detect used ports ([#235](https://github.com/smooth-code/jest-puppeteer/tree/master/packages/jest- ...
Read more >jest-dev-server: Versions | Openbase
Full version history for jest-dev-server including change logs. ... jest-dev-server can't detect used ports (#235) (8b64c10). Features.
Read more >webpack-dev-server not running (ECONNREFUSED)
So if you do not have a reason to proxy, e.g an api, remove the proxy settings and use the devserver port e.g...
Read more >can't resolve 'fs' in webpack | The AI Search Engine You Control
So you'll need to find an equivalent approach to replacing any fs use in your ... But i can't run webpack dev-server at...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Don’t work too hard. Take the time and don’t stress about it ❤️
it seems like we must set
tcpprefixes, thenwait-onpackage can find our server.very sorry about the problem, it will fix on this https://github.com/smooth-code/jest-puppeteer/pull/235 PR. cc @sync @Dilatorily