Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
test(cli): drop npm workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Dec 22, 2023
1 parent 6e6bfa2 commit 433e4bb
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions packages/expo-cli/e2e/TestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 433e4bb

Please sign in to comment.