Skip to content

Commit

Permalink
revert tests changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailSuendukov committed Oct 24, 2023
1 parent 915e7ae commit aab139f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/react-native-code-push-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ jobs:
with:
ruby-version: '2.7.6'
bundler-cache: true
- name: Setup Cocoapods
run: sudo gem install cocoapods
- name: Setup Node 16
run: brew install node@16
- name: Setup Watchman
run: brew install watchman
- name: Package Installation
run: npm install
- name: Setup Android tests
Expand All @@ -66,12 +60,6 @@ jobs:
with:
ruby-version: '2.7.6'
bundler-cache: true
- name: Setup Cocoapods
run: sudo gem install cocoapods
- name: Setup Node 16
run: brew install node@16
- name: Setup Watchman
run: brew install watchman
- name: Install dependencies
run: npm install
- name: Setup iOS tests
Expand Down
8 changes: 4 additions & 4 deletions test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,13 @@ class RNProjectManager extends ProjectManager {
}
mkdirp.sync(projectDirectory);

return TestUtil.getProcessOutput("npx react-native@latest init " + appName + " --version 0.71.3", { cwd: projectDirectory, timeout: 30 * 60 * 1000 })
.then((e) => { console.log(`"npx react-native@latest init ${appName}" success. cwd=${projectDirectory}`); return e; })
return TestUtil.getProcessOutput("npx react-native init " + appName + " --version 0.71.3", { 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) }))
.then(() => { return null; })
.catch((error) => {
console.log(`"npx react-native@latest init ${appName} failed". cwd=${projectDirectory}`, error);
console.log(`"npx react-native init ${appName} failed". cwd=${projectDirectory}`, error);
throw new Error(error);
});
}
Expand Down Expand Up @@ -1582,4 +1582,4 @@ PluginTestingFramework.initializeTests(new RNProjectManager(), supportedTargetPl
.done(() => { done(); }, (e) => { done(e); });
});
});
});
});

0 comments on commit aab139f

Please sign in to comment.