Skip to content

Commit

Permalink
Fix test-e2e-local with RNTester due to unbuilt codegen
Browse files Browse the repository at this point in the history
Summary:
Running `yarn test-e2e-local -t "RNTester" -p "Android" -h true -c <TOKEN>`
currently fails if you start from RNTester Android.

That's because codegen is not built. This commit fixes it.

Changelog:
[Internal] [Changed] - Fix test-e2e-local with RNTester due to unbuilt codegen

Differential Revision: D67972074
  • Loading branch information
cortinico authored and facebook-github-bot committed Jan 9, 2025
1 parent 5e64789 commit 8d9c60b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/release-testing/test-e2e-local.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ async function testRNTesterAndroid(
} version of RNTester Android with the new Architecture enabled`,
);

// Build Codegen as we're on a empty environment and metro needs it.
// This can be removed once we have codegen hooked in the `yarn build` step.
exec(`../../gradlew :packages:react-native:ReactAndroid:buildCodegenCLI --quiet`);

// Start the Metro server so it will be ready if the app can be built and installed successfully.
launchPackagerInSeparateWindow(pwd().toString());

Expand Down

0 comments on commit 8d9c60b

Please sign in to comment.