Skip to content

Commit a40a885

Browse files
cortinicofacebook-github-bot
authored andcommitted
Fix test-e2e-local with RNTester due to unbuilt codegen (facebook#48558)
Summary: Pull Request resolved: facebook#48558 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 fbshipit-source-id: c5c721a913b655675ed6e03e60efbb5ccdf613b2
1 parent f6f7de6 commit a40a885

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/release-testing/test-e2e-local.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,12 @@ async function testRNTesterAndroid(
138138
} version of RNTester Android with the new Architecture enabled`,
139139
);
140140

141+
// Build Codegen as we're on a empty environment and metro needs it.
142+
// This can be removed once we have codegen hooked in the `yarn build` step.
143+
exec(
144+
'../../gradlew :packages:react-native:ReactAndroid:buildCodegenCLI --quiet',
145+
);
146+
141147
// Start the Metro server so it will be ready if the app can be built and installed successfully.
142148
launchPackagerInSeparateWindow(pwd().toString());
143149

0 commit comments

Comments
 (0)