Skip to content

Commit

Permalink
Move release testing scripts into subdirectory (#42900)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #42900

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D53471278

fbshipit-source-id: 56b16c20b85c88577e5d899b0e85d078ab8aa51f
  • Loading branch information
huntie authored and facebook-github-bot committed Feb 7, 2024
1 parent 30d186c commit 009542f
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"start": "cd packages/rn-tester && npm run start",
"test-android": "./gradlew :packages:react-native:ReactAndroid:test",
"test-ci": "jest --maxWorkers=2 --ci --reporters=\"default\" --reporters=\"jest-junit\"",
"test-e2e-local-clean": "node ./scripts/test-e2e-local-clean.js",
"test-e2e-local": "node ./scripts/test-e2e-local.js",
"test-e2e-local-clean": "node ./scripts/release-testing/test-e2e-local-clean.js",
"test-e2e-local": "node ./scripts/release-testing/test-e2e-local.js",
"test-ios": "./scripts/objc-test.sh test",
"test-typescript-offline": "dtslint --localTs node_modules/typescript/lib packages/react-native/types",
"test-typescript": "dtslint packages/react-native/types",
Expand Down
15 changes: 15 additions & 0 deletions scripts/release-testing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# scripts/release-testing

Scripts supporting local manual release testing. See also [How to Test a Release](https://reactnative.dev/contributing/release-testing).

## Commands

For information on command arguments, run `node <command> --help`.

### `test-e2e-local`

Set up, build, and install a given test app configuration.

### `test-e2e-local-clean`

Clean up all file system and cache state between tests.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* - an option to uninstall the apps (RNTester, RNTestProject) from emulators
*/

const {isPackagerRunning} = require('./testing-utils');
const {isPackagerRunning} = require('./utils/testing-utils');
const {exec, exit} = require('shelljs');

console.info('\n** Starting the clean up process **\n');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
* and to make it more accessible for other devs to play around with.
*/

const updateTemplatePackage = require('./releases/update-template-package');
const updateTemplatePackage = require('../releases/update-template-package');
const {
checkPackagerRunning,
launchPackagerInSeparateWindow,
maybeLaunchAndroidEmulator,
prepareArtifacts,
setupCircleCIArtifacts,
} = require('./testing-utils');
} = require('./utils/testing-utils');
const path = require('path');
const {cd, exec, popd, pushd, pwd, sed} = require('shelljs');
const yargs = require('yargs');
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
const {
downloadHermesSourceTarball,
expandHermesSourceTarball,
} = require('../packages/react-native/scripts/hermes/hermes-utils.js');
const circleCIArtifactsUtils = require('./circle-ci-artifacts-utils.js');
} = require('../../../packages/react-native/scripts/hermes/hermes-utils.js');
const {
generateAndroidArtifacts,
generateiOSArtifacts,
} = require('./releases/utils/release-utils');
} = require('../../releases/utils/release-utils');
const circleCIArtifactsUtils = require('./circle-ci-artifacts-utils.js');
const fs = require('fs');
// $FlowIgnore[cannot-resolve-module]
const {spawn} = require('node:child_process');
Expand Down

0 comments on commit 009542f

Please sign in to comment.