From 433e4bbe46d104ad45a0b75fb40e42d2688efa95 Mon Sep 17 00:00:00 2001 From: Test User Date: Fri, 22 Dec 2023 16:31:43 +0100 Subject: [PATCH] test(cli): drop npm workaround --- packages/expo-cli/e2e/TestUtils.ts | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/packages/expo-cli/e2e/TestUtils.ts b/packages/expo-cli/e2e/TestUtils.ts index ee6e1bc4a3..fb88fe628e 100644 --- a/packages/expo-cli/e2e/TestUtils.ts +++ b/packages/expo-cli/e2e/TestUtils.ts @@ -94,19 +94,12 @@ export async function createMinimalProjectAsync( fs.writeFileSync(path.join(projectRoot, 'App.js'), getBasicAppJs()); - try { - // TODO(Bacon): We shouldn't need this - // Install the packages so eject can infer the versions - await spawnAsync('yarn', [], { - cwd: projectRoot, - stdio: process.env.CI === 'true' ? 'inherit' : ['ignore', 'inherit', 'inherit'], - }); - } catch { - await spawnAsync('npm', ['install'], { - cwd: projectRoot, - stdio: process.env.CI === 'true' ? 'inherit' : ['ignore', 'inherit', 'inherit'], - }); - } + // TODO(Bacon): We shouldn't need this + // Install the packages so eject can infer the versions + await spawnAsync('yarn', [], { + cwd: projectRoot, + stdio: process.env.CI === 'true' ? 'inherit' : ['ignore', 'inherit', 'inherit'], + }); return projectRoot; }