Move release testing scripts into subdirectory (#42900)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/42900

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D53471278

fbshipit-source-id: 56b16c20b85c88577e5d899b0e85d078ab8aa51f
This commit is contained in:
Alex Hunt 2024-02-07 05:40:26 -08:00 committed by Facebook GitHub Bot
parent 30d186c368
commit 009542f4ee
6 changed files with 23 additions and 8 deletions

View File

@ -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",

View File

@ -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.

View File

@ -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');

View File

@ -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');

View File

@ -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');