Skip to content

Commit

Permalink
Aleter test setup npx command
Browse files Browse the repository at this point in the history
  • Loading branch information
DordeDimitrijev committed Jun 20, 2024
1 parent 7dc57a7 commit 399d413
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions react-native.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
module.exports = {
project:{
ios:{
automaticPodsInstallation:true
}
},
dependency: {
platforms: {
android: {
Expand Down
2 changes: 1 addition & 1 deletion test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class RNProjectManager extends ProjectManager {
}
mkdirp.sync(projectDirectory);

return TestUtil.getProcessOutput("npx react-native@10.0.0 init " + appName + " --version 0.71.3 --install-pods", { cwd: projectDirectory, timeout: 30 * 60 * 1000 })
return TestUtil.getProcessOutput("npx --yes react-native@~0.71.0 init " + appName + "--install-pods", { cwd: projectDirectory, timeout: 30 * 60 * 1000 })
.then((e) => { console.log(`"npx react-native init ${appName}" success. cwd=${projectDirectory}`); return e; })
.then(this.copyTemplate.bind(this, templatePath, projectDirectory))
.then<void>(TestUtil.getProcessOutput.bind(undefined, TestConfig.thisPluginInstallString, { cwd: path.join(projectDirectory, TestConfig.TestAppName) }))
Expand Down

0 comments on commit 399d413

Please sign in to comment.