Cannot use cypress port 0 to auto-assign a port if the devServerTarget is @nrwl/web:file-server #16684
Labels
outdated
scope: testing tools
Issues related to Cypress / Jest / Playwright / Vitest support in Nx
type: bug
Current Behavior
When configuring the
@nrwl/cypress:cypress
executor to use port 0, to randomly assign a port, the port is not respected if thedevServerTarget
uses the@nrwl/web:file-server
executor. The devServerTarget start successfully, it just doesn't pass that port back to Cypress.Expected Behavior
I would expect the underlying
devServerTarget
to use the same port that the Cypress executor is expecting.GitHub Repo
https://github.com/dsjellz/cypress-port-passthrough
Steps to Reproduce
nx run port-passthrough-e2e:e2e
and the devServerTarget will run on port54895
(or something)nx run port-passthrough-e2e:e2e:ci
and the devServerTarget will run on port 8080 (regardless if that port is in use).Nx Report
Failure Logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: