Skip to content

Commit

Permalink
Fix test-e2e-local with RNTester due to unbuilt codegen (#48558)
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

Reviewed By: cipolleschi

Differential Revision: D67972074
  • Loading branch information
cortinico authored and facebook-github-bot committed Jan 10, 2025
1 parent c85be01 commit 6bc5e25
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 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,12 @@ 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 6bc5e25

Please sign in to comment.