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(e2e): correctly link packages #2148

Merged
merged 1 commit into from
Nov 2, 2023
Merged

Conversation

szymonrybczak
Copy link
Collaborator

@szymonrybczak szymonrybczak commented Nov 1, 2023

Summary:

In this PR I changed to link all packages before running testes. Recently there was introduced change to init which creates react-native.config.js with some flag. But in tests we were only linking cli-platform-android and cli-platform-ios so creating project was failing since it installs Pods, and during installing Pods we call use_native_modules which executes config command that was outdated. And it was giving error:
CleanShot 2023-11-01 at 13 01 54

Test Plan:

CI Green

Checklist

  • Documentation is up to date to reflect these changes.
  • Follows commit message convention described in CONTRIBUTING.md

Comment on lines -26 to +30
runCLI(cwd, ['init', 'TestProject', '--install-pods']);
runCLI(cwd, ['init', 'TestProject']);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Here we don't need to install pods, since this test check only android related things.

@szymonrybczak szymonrybczak force-pushed the fix/correctly-link-pacakges branch from 4a3035b to d2c9cc1 Compare November 1, 2023 12:05
@szymonrybczak
Copy link
Collaborator Author

szymonrybczak commented Nov 1, 2023

Probably we should also properly delete cache before linking packages. Linked packages are stored under ~/.config/yarn/link/@react-native-community/ to be 100% sure that we have right packages.

@szymonrybczak szymonrybczak mentioned this pull request Nov 1, 2023
2 tasks
Copy link
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

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

nice one!

@thymikee thymikee merged commit 6f2908b into main Nov 2, 2023
@thymikee thymikee deleted the fix/correctly-link-pacakges branch November 2, 2023 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants