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(testing): app generators should create correct e2e config at generation time #22565
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 6c1a16e. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 6 targets
Sent with 💌 from NxCloud. |
@@ -41,8 +45,34 @@ export async function normalizeOptions( | |||
? options.tags.split(',').map((s) => s.trim()) | |||
: []; | |||
const rootProject = appProjectRoot === '.'; | |||
|
|||
let e2eWebServerTarget = 'serve'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xiongemi Could make sure some of the assumptions for expo
projects are correct here?
- default
webServerTarget
- default
port
the app gets served on
@@ -44,8 +48,35 @@ export async function normalizeOptions( | |||
const iosProjectRoot = joinPathFragments(appProjectRoot, 'ios'); | |||
const androidProjectRoot = joinPathFragments(appProjectRoot, 'android'); | |||
const rootProject = appProjectRoot === '.'; | |||
|
|||
let e2eWebServerTarget = 'start'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xiongemi Could make sure some of the assumptions for react-native
projects are correct here?
- default
webServerTarget
- default
port
the app gets served on
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next LGTM
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
The current e2e app generation for various app generators has the chance of producing invalid config files due to some edge cases around Nx Crystal.
Expected Behavior
Ensure e2e app generation creates correct config
Related Issue(s)
Fixes #