Skip to content

Commit

Permalink
feat(react-native): upgrade react-native to version 0.71.8 (#16997)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongemi authored May 15, 2023
1 parent c2ce8f8 commit 5419811
Show file tree
Hide file tree
Showing 18 changed files with 215 additions and 128 deletions.
93 changes: 51 additions & 42 deletions docs/generated/packages/detox/executors/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
"type": "object",
"cli": "nx",
"presets": [
{
"name": "Run tests",
"keys": ["detoxConfiguration", "loglevel", "reuse"]
}
{ "name": "Test a Detox Configuration", "keys": ["detoxConfiguration"] },
{ "name": "Reuse Existing Installed App", "keys": ["reuse"] },
{ "name": "Set Log Level", "keys": ["loglevel"] }
],
"properties": {
"detoxConfiguration": {
Expand All @@ -38,22 +37,26 @@
"x-completion-glob": ".detoxrc?(.js)",
"x-priority": "important"
},
"runnerConfig": {
"type": "string",
"description": "Test runner config file, defaults to `e2e/mocha.opts` for mocha and `e2e/config.json` for Jest.",
"alias": "o"
},
"deviceName": {
"type": "string",
"description": "Override the device name specified in a configuration. Useful for running a single build configuration on multiple devices.",
"alias": "n"
},
"loglevel": {
"type": "string",
"enum": ["fatal", "error", "warn", "info", "verbose", "trace"],
"description": "Log level: `fatal`, `error`, `warn`, `info`, `verbose`, `trace`.",
"alias": "l"
},
"retries": {
"type": "number",
"description": "[Jest Circus Only] Re-spawn the test runner for individual failing suite files until they pass, or `<N>` times at least."
},
"reuse": {
"type": "boolean",
"description": "Reuse existing installed app (do not delete + reinstall) for a faster run.",
"default": false
},
"cleanup": {
"type": "boolean",
"description": "Shutdown simulator when test is over, useful for CI scripts, to make sure detox exists cleanly with no residue",
"alias": "u"
},
"debugSynchronization": {
"type": "boolean",
"description": "Customize how long an action/expectation can take to complete before Detox starts querying the app why it is busy. By default, the app status will be printed if the action takes more than 10s to complete.",
Expand Down Expand Up @@ -84,33 +87,11 @@
"enum": ["all", "none"],
"description": "[iOS Only] Save Detox Instruments performance recordings of each test to artifacts directory."
},
"recordTimeline": {
"type": "string",
"enum": ["all", "none"],
"description": "[Jest Only] Record tests and events timeline, for visual display on the `chrome://tracing` tool."
},
"captureViewHierarchy": {
"type": "string",
"enum": ["enabled", "disabled"],
"description": "[iOS Only] Capture `*.uihierarchy` snapshots on view action errors and `device.captureViewHierarchy()` calls."
},
"retries": {
"type": "number",
"description": "[Jest Circus Only] Re-spawn the test runner for individual failing suite files until they pass, or `<N>` times at least."
},
"reuse": {
"type": "boolean",
"description": "Reuse existing installed app (do not delete + reinstall) for a faster run.",
"default": true
},
"cleanup": {
"type": "boolean",
"description": "Shutdown simulator when test is over, useful for CI scripts, to make sure detox exists cleanly with no residue"
},
"workers": {
"type": "number",
"description": "Specifies number of workers the test runner should spawn, requires a test runner with parallel execution support (Detox CLI currently supports Jest)."
},
"jestReportSpecs": {
"type": "boolean",
"description": "[Jest Only] Whether to output logs per each running spec, in real-time. By default, disabled with multiple workers."
Expand All @@ -123,18 +104,23 @@
"type": "boolean",
"description": "[Android Only] Launch Emulator with the specific `-gpu [gpu mode]` parameter."
},
"deviceLaunchArgs": {
"keepLockFile": {
"type": "boolean",
"description": "Keep the device lock file when running Detox tests."
},
"deviceName": {
"type": "string",
"description": "Override the device name specified in a configuration. Useful for running a single build configuration on multiple devices.",
"alias": "n"
},
"deviceBootArgs": {
"type": "string",
"description": "A list of passthrough-arguments to use when (if) devices (Android emulator / iOS simulator) are launched by Detox."
"description": "Custom arguments to pass (through) onto the device (emulator/simulator) binary when booted."
},
"appLaunchArgs": {
"type": "number",
"description": "Custom arguments to pass (through) onto the app every time it is launched."
},
"noColor": {
"type": "boolean",
"description": "Disable colors in log output"
},
"useCustomLogger": {
"type": "boolean",
"description": "Use Detox' custom console-logging implementation, for logging Detox (non-device) logs. Disabling will fallback to Node.js / test-runner's implementation (e.g. Jest / Mocha)."
Expand All @@ -146,6 +132,29 @@
"inspectBrk": {
"type": "boolean",
"description": "Uses node's `--inspect-brk` flag to let users debug the jest/mocha test runner"
},
"color": { "type": "boolean", "description": "Colors in log output" },
"runnerConfig": {
"type": "string",
"description": "Test runner config file, defaults to `e2e/mocha.opts` for mocha and `e2e/config.json` for Jest.",
"alias": "o",
"x-deprecated": "Deprecated in Detox 20. It is default to jest.config.json. It could be specified in .detoxrc.json"
},
"recordTimeline": {
"type": "string",
"enum": ["all", "none"],
"description": "[Jest Only] Record tests and events timeline, for visual display on the `chrome://tracing` tool.",
"x-deprecated": "Deprecated in Detox 20."
},
"workers": {
"type": "number",
"description": "Specifies number of workers the test runner should spawn, requires a test runner with parallel execution support (Detox CLI currently supports Jest).",
"x-deprecated": "Deprecated in Detox 20."
},
"deviceLaunchArgs": {
"type": "string",
"description": "A list of passthrough-arguments to use when (if) devices (Android emulator / iOS simulator) are launched by Detox.",
"x-deprecated": "Deprecated in Detox 20. Use `deviceBootArgs` instead."
}
},
"required": ["detoxConfiguration"]
Expand Down
9 changes: 9 additions & 0 deletions packages/detox/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,15 @@
"alwaysAddToPackageJson": false
}
}
},
"16.1.5": {
"version": "16.1.5-beta.0",
"packages": {
"detox": {
"version": "^20.9.0",
"alwaysAddToPackageJson": false
}
}
}
}
}
2 changes: 1 addition & 1 deletion packages/detox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@nx/react": "file:../react"
},
"peerDependencies": {
"detox": "~20.8.0"
"detox": "^20.9.0"
},
"builders": "./executors.json",
"ng-update": {
Expand Down
34 changes: 21 additions & 13 deletions packages/detox/src/executors/test/schema.d.ts
Original file line number Diff line number Diff line change
@@ -1,31 +1,39 @@
// options from https://github.com/wix/Detox/blob/master/docs/APIRef.DetoxCLI.md#test
// detox test args: https://github.com/wix/Detox/blob/master/detox/local-cli/utils/testCommandArgs.js
export interface DetoxTestOptions {
// options from https://wix.github.io/Detox/docs/cli/test
// detox test args: https://github.com/wix/Detox/blob/master/detox/local-cli/testCommand/builder.js
configPath?: string;
detoxConfiguration: string;
runnerConfig?: string;
deviceName?: string;
loglevel?: string;
loglevel?: 'fatal' | 'error' | 'warn' | 'info' | 'verbose' | 'trace';
retries?: number;
reuse: boolean; // default is false
cleanup?: boolean;
debugSynchronization?: boolean;
artifactsLocation?: string;
recordLogs?: 'failing' | 'all' | 'none';
takeScreenshots?: 'manual' | 'failing' | 'all' | 'none';
recordVideos?: 'failing' | 'all' | 'none';
recordPerformance?: 'all' | 'none';
recordTimeline?: 'all' | 'none';
captureViewHierarchy?: 'enabled' | 'disabled';
retries?: number;
reuse: boolean; // default is true
cleanup?: boolean;
workers?: number;
jestReportSpecs?: boolean;
headeless?: boolean;
gpu?: boolean;
deviceLauchArgs?: string;
keepLockFile?: boolean;
deviceName?: string;
deviceBootArgs?: string;
appLaunchArgs?: string;
noColor?: boolean;
useCutsomeLogger?: boolean;
useCustomLogger?: boolean;
forceAdbInstall?: boolean;
inspectBrk?: boolean;

// detox cli options
color?: boolean;

// nx build options
buildTarget?: string;

// @deprecated(Emily): removed from Detox 20, remove in next major release
runnerConfig?: string;
recordTimeline?: 'all' | 'none';
workers?: number;
deviceLaunchArgs?: string;
}
101 changes: 61 additions & 40 deletions packages/detox/src/executors/test/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,16 @@
"cli": "nx",
"presets": [
{
"name": "Run tests",
"keys": ["detoxConfiguration", "loglevel", "reuse"]
"name": "Test a Detox Configuration",
"keys": ["detoxConfiguration"]
},
{
"name": "Reuse Existing Installed App",
"keys": ["reuse"]
},
{
"name": "Set Log Level",
"keys": ["loglevel"]
}
],
"properties": {
Expand All @@ -35,22 +43,26 @@
"x-completion-glob": ".detoxrc?(.js)",
"x-priority": "important"
},
"runnerConfig": {
"type": "string",
"description": "Test runner config file, defaults to `e2e/mocha.opts` for mocha and `e2e/config.json` for Jest.",
"alias": "o"
},
"deviceName": {
"type": "string",
"description": "Override the device name specified in a configuration. Useful for running a single build configuration on multiple devices.",
"alias": "n"
},
"loglevel": {
"type": "string",
"enum": ["fatal", "error", "warn", "info", "verbose", "trace"],
"description": "Log level: `fatal`, `error`, `warn`, `info`, `verbose`, `trace`.",
"alias": "l"
},
"retries": {
"type": "number",
"description": "[Jest Circus Only] Re-spawn the test runner for individual failing suite files until they pass, or `<N>` times at least."
},
"reuse": {
"type": "boolean",
"description": "Reuse existing installed app (do not delete + reinstall) for a faster run.",
"default": false
},
"cleanup": {
"type": "boolean",
"description": "Shutdown simulator when test is over, useful for CI scripts, to make sure detox exists cleanly with no residue",
"alias": "u"
},
"debugSynchronization": {
"type": "boolean",
"description": "Customize how long an action/expectation can take to complete before Detox starts querying the app why it is busy. By default, the app status will be printed if the action takes more than 10s to complete.",
Expand Down Expand Up @@ -81,33 +93,11 @@
"enum": ["all", "none"],
"description": "[iOS Only] Save Detox Instruments performance recordings of each test to artifacts directory."
},
"recordTimeline": {
"type": "string",
"enum": ["all", "none"],
"description": "[Jest Only] Record tests and events timeline, for visual display on the `chrome://tracing` tool."
},
"captureViewHierarchy": {
"type": "string",
"enum": ["enabled", "disabled"],
"description": "[iOS Only] Capture `*.uihierarchy` snapshots on view action errors and `device.captureViewHierarchy()` calls."
},
"retries": {
"type": "number",
"description": "[Jest Circus Only] Re-spawn the test runner for individual failing suite files until they pass, or `<N>` times at least."
},
"reuse": {
"type": "boolean",
"description": "Reuse existing installed app (do not delete + reinstall) for a faster run.",
"default": true
},
"cleanup": {
"type": "boolean",
"description": "Shutdown simulator when test is over, useful for CI scripts, to make sure detox exists cleanly with no residue"
},
"workers": {
"type": "number",
"description": "Specifies number of workers the test runner should spawn, requires a test runner with parallel execution support (Detox CLI currently supports Jest)."
},
"jestReportSpecs": {
"type": "boolean",
"description": "[Jest Only] Whether to output logs per each running spec, in real-time. By default, disabled with multiple workers."
Expand All @@ -120,18 +110,23 @@
"type": "boolean",
"description": "[Android Only] Launch Emulator with the specific `-gpu [gpu mode]` parameter."
},
"deviceLaunchArgs": {
"keepLockFile": {
"type": "boolean",
"description": "Keep the device lock file when running Detox tests."
},
"deviceName": {
"type": "string",
"description": "Override the device name specified in a configuration. Useful for running a single build configuration on multiple devices.",
"alias": "n"
},
"deviceBootArgs": {
"type": "string",
"description": "A list of passthrough-arguments to use when (if) devices (Android emulator / iOS simulator) are launched by Detox."
"description": "Custom arguments to pass (through) onto the device (emulator/simulator) binary when booted."
},
"appLaunchArgs": {
"type": "number",
"description": "Custom arguments to pass (through) onto the app every time it is launched."
},
"noColor": {
"type": "boolean",
"description": "Disable colors in log output"
},
"useCustomLogger": {
"type": "boolean",
"description": "Use Detox' custom console-logging implementation, for logging Detox (non-device) logs. Disabling will fallback to Node.js / test-runner's implementation (e.g. Jest / Mocha)."
Expand All @@ -143,6 +138,32 @@
"inspectBrk": {
"type": "boolean",
"description": "Uses node's `--inspect-brk` flag to let users debug the jest/mocha test runner"
},
"color": {
"type": "boolean",
"description": "Colors in log output"
},
"runnerConfig": {
"type": "string",
"description": "Test runner config file, defaults to `e2e/mocha.opts` for mocha and `e2e/config.json` for Jest.",
"alias": "o",
"x-deprecated": "Deprecated in Detox 20. It is default to jest.config.json. It could be specified in .detoxrc.json"
},
"recordTimeline": {
"type": "string",
"enum": ["all", "none"],
"description": "[Jest Only] Record tests and events timeline, for visual display on the `chrome://tracing` tool.",
"x-deprecated": "Deprecated in Detox 20."
},
"workers": {
"type": "number",
"description": "Specifies number of workers the test runner should spawn, requires a test runner with parallel execution support (Detox CLI currently supports Jest).",
"x-deprecated": "Deprecated in Detox 20."
},
"deviceLaunchArgs": {
"type": "string",
"description": "A list of passthrough-arguments to use when (if) devices (Android emulator / iOS simulator) are launched by Detox.",
"x-deprecated": "Deprecated in Detox 20. Use `deviceBootArgs` instead."
}
},
"required": ["detoxConfiguration"]
Expand Down
Loading

1 comment on commit 5419811

@vercel
Copy link

@vercel vercel bot commented on 5419811 May 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-five.vercel.app
nx.dev
nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app

Please sign in to comment.