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(testing): app generators should create correct e2e config at generation time #22565

Merged
merged 1 commit into from Apr 3, 2024

Conversation

Coly010
Copy link
Contributor

@Coly010 Coly010 commented Mar 28, 2024

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 #

@Coly010 Coly010 requested review from a team as code owners March 28, 2024 18:03
@Coly010 Coly010 self-assigned this Mar 28, 2024
Copy link

vercel bot commented Mar 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Mar 28, 2024 6:05pm

@@ -41,8 +45,34 @@ export async function normalizeOptions(
? options.tags.split(',').map((s) => s.trim())
: [];
const rootProject = appProjectRoot === '.';

let e2eWebServerTarget = 'serve';
Copy link
Contributor Author

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';
Copy link
Contributor Author

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

Copy link
Contributor

@ndcunningham ndcunningham left a comment

Choose a reason for hiding this comment

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

Next LGTM

@Coly010 Coly010 merged commit 7f00927 into nrwl:master Apr 3, 2024
6 checks passed
@Coly010 Coly010 deleted the testing/fix-e2e-generation branch April 3, 2024 15:51
FrozenPandaz pushed a commit that referenced this pull request Apr 5, 2024
Copy link

github-actions bot commented Apr 9, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants