Skip to content

Commit

Permalink
feat: Update android driver to v7 (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored Oct 14, 2023
1 parent 249ba2d commit bcb9b6b
Show file tree
Hide file tree
Showing 16 changed files with 424 additions and 208 deletions.
15 changes: 12 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
{
"extends": "@appium/eslint-config-appium",
"extends": ["@appium/eslint-config-appium-ts"],
"overrides": [
{
"files": "test/**/*.js",
"rules": {
"func-names": "off"
"func-names": "off",
"@typescript-eslint/no-var-requires": "off"
}
},
{
"files": "scripts/**/*",
"parserOptions": {"sourceType": "script"},
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
]}
]
}
2 changes: 1 addition & 1 deletion .mocharc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
require: ['@babel/register'],
require: ['ts-node/register'],
forbidOnly: Boolean(process.env.CI)
};
25 changes: 0 additions & 25 deletions babel.config.json

This file was deleted.

6 changes: 6 additions & 0 deletions lib/commands/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ import { errors } from 'appium/driver';

const extensions = {};

/**
* @this {import('../driver').EspressoDriver}
* @param {string} mobileCommand
* @param {Record<string, any>} [opts={}]
* @returns {Promise<any>}
*/
extensions.executeMobile = async function executeMobile (mobileCommand, opts = {}) {
const mobileCommandsMapping = {
shell: 'mobileShell',
Expand Down
Loading

0 comments on commit bcb9b6b

Please sign in to comment.