Skip to content
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

fix(jest-dev-server): fix port detection #518

Merged
merged 1 commit into from Feb 4, 2023
Merged

Conversation

gregberge
Copy link
Member

Fix #460, #281, #233

@gregberge gregberge merged commit 805819d into main Feb 4, 2023
@colinrotherham
Copy link
Contributor

Hi @gregberge did these changes build correctly into jest-dev-server@7.0.0?

I'm still seeing the old isPortTaken (vs isPortBusy) via the npm code tab:
https://www.npmjs.com/package/jest-dev-server?activeTab=explore

Thanks

@gregberge
Copy link
Member Author

@colinrotherham just redeployed, I checked the code and it is correct.

@gregberge gregberge deleted the fix-port-detection branch February 15, 2023 15:38
@colinrotherham
Copy link
Contributor

@gregberge That's great, thank you. Appreciate it

We had a Dependabot update for jest-puppeteer@7.0.0 but didn't realise jest-dev-server needed a bump too

colinrotherham added a commit to alphagov/govuk-frontend that referenced this pull request Feb 16, 2023
Port detection has now been fixed in `jest-dev-server`: argos-ci/jest-puppeteer#518
colinrotherham added a commit to alphagov/govuk-frontend that referenced this pull request Feb 16, 2023
Port detection has now been fixed in `jest-dev-server`: argos-ci/jest-puppeteer#518
colinrotherham added a commit to alphagov/govuk-frontend that referenced this pull request Feb 16, 2023
Port detection has now been fixed in `jest-dev-server`: argos-ci/jest-puppeteer#518
colinrotherham added a commit to alphagov/govuk-frontend that referenced this pull request Feb 21, 2023
Port detection has now been fixed in `jest-dev-server`: argos-ci/jest-puppeteer#518
colinrotherham added a commit to alphagov/govuk-frontend that referenced this pull request Feb 21, 2023
Port detection has now been fixed in `jest-dev-server`: argos-ci/jest-puppeteer#518
colinrotherham added a commit to alphagov/govuk-frontend that referenced this pull request Feb 22, 2023
Port detection has now been fixed in `jest-dev-server`: argos-ci/jest-puppeteer#518
err.code === "EADDRINUSE" ? resolve(cleanupAndReturn(true)) : reject()
)
.once("listening", () => resolve(cleanupAndReturn(false)))
.listen(config.port, config.host);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the comment on this PR which has already been merged! But I think removing config.host from here, caused the issue: #555.

I've submitted a new PR addressing this 😁 #556

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jest-dev-server port detection is not working
3 participants