fix(appium,types): cliArgs is never undefined
MODIFY
packages/appium/lib/appium.js
packages/appium/lib/appium.js
@@ -306,7 +306,7 @@ class AppiumDriver extends DriverCore {
// Likewise, any driver-specific CLI args that were passed in should be assigned directly to
// the driver so that they cannot be mimicked by a malicious user sending in capabilities
const cliArgs = this.getCliArgsForDriver(driverName);
- if (!_.isEmpty(cliArgs)) {
+ if (!_.isUndefined(cliArgs)) {
driverInstance.cliArgs = cliArgs;
}

MODIFY
packages/types/lib/driver.ts
packages/types/lib/driver.ts
@@ -374,7 +374,7 @@ export interface Driver<
IExecuteCommands,
SessionHandler<[string, any], void, C>,
Core {
- cliArgs?: CArgs;
+ cliArgs: CArgs;
// The following methods are implemented by `BaseDriver`.
executeCommand(cmd: string, ...args: any[]): Promise<any>;
startUnexpectedShutdown(err?: Error): Promise<void>;

fix(appium,types): cliArgs is never undefined