Nx Plugin E2E Generator to Scaffold tmp Directory Outside the Workspace #33823
koliveira15
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
The Nx Plugin
e2e-projectgenerator currently scaffolds a temporary workspace directory (tmp) inside the host Nx workspace root. This leads to collisions with Nx Cloud runs when e2e test suites execute Nx commands. The core Nx repo does not use this pattern for its own test workspaces; instead, it generates temporary workspaces outside the repository root.Problem
The current template creates the
tmpdirectory under the workspace root, which causes Nx Cloud runs and metrics to capture temporary runs. This conflicts with the strategy the Nx repo uses for its own internal e2e test workspaces.Adding a
process.env.NX_NO_CLOUDinstart-local-registry.tsis not ideal as it can lead to unintended side effects with caching.Proposal
Update the Nx Plugin e2e generator so that the temporary e2e workspace is created outside the workspace root. This aligns the plugin e2e test scaffolding with how the Nx repo manages its own e2e test workspaces and prevents unintended side effects.
Beta Was this translation helpful? Give feedback.
All reactions