question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:

  1. Start an express server on port 3000
  2. Set the server.port to 3000 in the jest-puppeteer.config.js file
  3. 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:open
  • Created 4 years ago
  • Reactions:5
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
synccommented, Apr 30, 2019

Don’t work too hard. Take the time and don’t stress about it ❤️

2reactions
xiaoyuhencommented, Apr 30, 2019

it seems like we must set tcp prefixes, then wait-on package 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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found