diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index c65cb7f..7d55d8b 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -26,5 +26,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} + - run: npm install - run: npm run lint - run: npm run test diff --git a/bin/web_inspector_proxy.js b/bin/web_inspector_proxy.js index 5342fde..882ad00 100644 --- a/bin/web_inspector_proxy.js +++ b/bin/web_inspector_proxy.js @@ -1,5 +1,5 @@ /* eslint-disable no-console */ -import { exec, SubProcess } from 'teen_process'; +import { SubProcess } from 'teen_process'; import { plist, util } from '@appium/support'; import { asyncify } from 'asyncbox'; import B from 'bluebird'; @@ -12,10 +12,6 @@ async function getSocket (udid) { return await sim.getWebInspectorSocket(); } -async function moveSocket (socket) { // eslint-disable-line no-unused-vars - await exec('mv', [socket, `${socket}.original`]); -} - function printRecord (lines) { const header = lines.shift(); console.log(header); @@ -103,7 +99,6 @@ async function main () { const udid = _.last(process.argv); const s = await getSocket(udid); console.log('Simulator web inspector socket:', s); - // await moveSocket(s); await startSoCat(s); } diff --git a/lib/remote-debugger.js b/lib/remote-debugger.js index 5f002b3..fe2026f 100644 --- a/lib/remote-debugger.js +++ b/lib/remote-debugger.js @@ -7,7 +7,6 @@ import _ from 'lodash'; import B from 'bluebird'; import path from 'path'; import AsyncLock from 'async-lock'; -import RpcClient from './rpc/rpc-client'; const REMOTE_DEBUGGER_PORT = 27753; const SAFARI_BUNDLE_ID = 'com.apple.mobilesafari'; @@ -38,7 +37,7 @@ class RemoteDebugger extends EventEmitter { pageLoadDelay; /** @type {B} */ navigationDelay; - /** @type {RpcClient?} */ + /** @type {import('./rpc/rpc-client').default?} */ rpcClient; // events diff --git a/package.json b/package.json index f5fb8a8..2da8fb1 100644 --- a/package.json +++ b/package.json @@ -78,9 +78,9 @@ }, "devDependencies": { "@appium/eslint-config-appium": "^8.0.4", - "@appium/eslint-config-appium-ts": "^0.3.1", - "@appium/tsconfig": "^0.3.0", - "@appium/types": "^0.13.2", + "@appium/eslint-config-appium-ts": "^0.x", + "@appium/tsconfig": "^0.x", + "@appium/types": "^0.x", "@semantic-release/changelog": "^6.0.1", "@semantic-release/git": "^10.0.1", "@types/bluebird": "^3.5.38", @@ -91,7 +91,7 @@ "@types/node": "^20.4.7", "@types/sinon": "^10.0.16", "@types/sinon-chai": "^3.2.9", - "@types/teen_process": "2.0.0", + "@types/teen_process": "^2.0.0", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", "appium-ios-simulator": "^5.0.1",