From f499de90314dadc7dff4e00b5758b348adb8e034 Mon Sep 17 00:00:00 2001 From: Vojtech Novak Date: Tue, 3 Dec 2024 16:29:15 +0100 Subject: [PATCH] fix hermes param handling in test-e2e-local.js --- scripts/release-testing/test-e2e-local.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/release-testing/test-e2e-local.js b/scripts/release-testing/test-e2e-local.js index 6a520335b1379b..9ff312d84bf6d2 100644 --- a/scripts/release-testing/test-e2e-local.js +++ b/scripts/release-testing/test-e2e-local.js @@ -300,9 +300,10 @@ async function testRNTestProject( 'reactNativeArchitectures=arm64-v8a', 'android/gradle.properties', ); + const hermesEnabled = (await argv).hermes === true; // Update gradle properties to set Hermes as false - if (argv.hermes == null) { + if (!hermesEnabled) { sed( '-i', 'hermesEnabled=true', @@ -317,7 +318,7 @@ async function testRNTestProject( exec('bundle install'); exec( `HERMES_ENGINE_TARBALL_PATH=${hermesPath} USE_HERMES=${ - argv.hermes === true ? 1 : 0 + hermesEnabled ? 1 : 0 } bundle exec pod install --ansi`, );