diff --git a/scripts/release-testing/test-e2e-local.js b/scripts/release-testing/test-e2e-local.js index 35a1399c3a6..168a3979f56 100644 --- a/scripts/release-testing/test-e2e-local.js +++ b/scripts/release-testing/test-e2e-local.js @@ -224,17 +224,16 @@ async function testRNTester( ciArtifacts /*:Unwrap> */, onReleaseBranch /*: boolean */, ) { + // 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. + console.info('[Codegen] >>> Building react-native-codegen...'); + exec('./packages/react-native-codegen/scripts/oss/build.sh'); + // FIXME: make sure that the commands retains colors // (--ansi) doesn't always work // see also https://github.com/shelljs/shelljs/issues/86 pushd('packages/rn-tester'); - // 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', - ); - if (argv.platform === 'ios') { await testRNTesterIOS(ciArtifacts, onReleaseBranch); } else {