From c75a147410bfec3d591fd42617e3ef237e1e2d09 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Wed, 28 Jun 2023 17:37:43 +0100 Subject: [PATCH] add missing await to generate artifacts --- scripts/test-e2e-local.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/test-e2e-local.js b/scripts/test-e2e-local.js index cf363404451b8c..effa1fe62c3130 100644 --- a/scripts/test-e2e-local.js +++ b/scripts/test-e2e-local.js @@ -202,7 +202,10 @@ async function downloadArtifactsFromCircleCI( await circleCIArtifacts.artifactURLForPackagedReactNative(); const hermesURL = await circleCIArtifacts.artifactURLHermesDebug(); - const packagedReactNativePath = path.join(circleCIArtifacts.baseTmpPath, '/tmp/packaged-react-native.tar.gz'); + const packagedReactNativePath = path.join( + circleCIArtifacts.baseTmpPath, + '/tmp/packaged-react-native.tar.gz', + ); const hermesPath = path.join( circleCIArtifacts.baseTmpPath, 'hermes-ios-debug.tar.gz', @@ -337,7 +340,7 @@ async function testRNTestProject(circleCIArtifacts) { circleCIArtifacts != null ? path.join(circleCIArtifacts.baseTmpPath, 'maven-local.zip') : '/private/tmp/maven-local'; - const hermesPath = prepareArtifacts( + const hermesPath = await prepareArtifacts( circleCIArtifacts, mavenLocalPath, localNodeTGZPath, @@ -354,7 +357,7 @@ async function testRNTestProject(circleCIArtifacts) { exec('npm pack', {cwd: reactNativePackagePath}); pushd('/tmp/'); - // need to avoid the pod install step - we'll do it later + // // need to avoid the pod install step - we'll do it later exec( `node ${reactNativePackagePath}/cli.js init RNTestProject --template ${localNodeTGZPath} --skip-install`, );