-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Connection refused on node v18 in CI #25528
Comments
I face the same error locally on my linux machine and in the pipeline using the I could workaround this problem by serving Angular on
Anyways it'd be nice if Cypress would work with the default settings. |
I recently investigated this very issue. I posted about it here. I believe there are two issues:
Edit: I made some headway into the issue I linked above (new comment here). Might be related, but I'll return to this issue tomorrow to see if they are similar. |
@MarcusElevait There has been a lot of info posted regarding the workaround (using the I don't run into any issues with a very simple angular + nx repo, regardless of node version. The only issue I found (which is what I linked above) is when a |
We had a workaround by setting the following env in the docker image that we use to run the tests in our ci pipeline: So for us it is good with that. But yes, in our tests we're running always a |
Basically we have the following setup:
A test running the following code:
|
Based on your comments iI'd say the |
Thanks! This helped me! I have been struggling with this for a week. Thank you so much for sharing! |
why is it happening? angular issue or anything else? if you find out, please let me know |
Current behavior
We have an angular project that we test with cypress.
It runs fine, until we tried to switch from node v16 to node v18.
After switching to node v18 we get the following error in every cypress test:
Initially thought the angular app maybe crashed, but we see this right before the error message:
** Angular Live Development Server is listening on localhost:4206, open your browser on http://localhost:4206/ **
We're using the
cypress/browsers:node18.12.0-chrome103-ff107
docker image as a base image for our pipeline.We're running this in bitbucket.
What I've tried so far:
Desired behavior
Basically just want the test to run without this connection refused error.
Test code to reproduce
Running a basic angular application on port 4206
cypress.config.ts:
Cypress Version
12.3.0
Node version
18.12.0
Operating System
docker image cypress/browsers:node18.12.0-chrome103-ff107
Debug Logs
Other
We're using nx monorepo. There we have this anuglar application and another application which holds the cypress tests.
This is the nx project.json of the cypress app
The text was updated successfully, but these errors were encountered: