diff --git a/tests/e2e/utils/execAsync.ts b/tests/e2e/utils/execAsync.ts index 8f1a4ec10c6b..9ec8ca892a50 100644 --- a/tests/e2e/utils/execAsync.ts +++ b/tests/e2e/utils/execAsync.ts @@ -48,3 +48,5 @@ export default (command: string, env: NodeJS.ProcessEnv = {}): PromiseWithAbort return promise; }; + +export type {PromiseWithAbort}; diff --git a/tests/e2e/utils/killApp.ts b/tests/e2e/utils/killApp.ts index 889f345cf222..f2d7bb56112f 100644 --- a/tests/e2e/utils/killApp.ts +++ b/tests/e2e/utils/killApp.ts @@ -1,7 +1,8 @@ import config from '../config'; import execAsync from './execAsync'; +import type {PromiseWithAbort} from './execAsync'; -const killApp = function (platform = 'android', packageName = config.MAIN_APP_PACKAGE): Promise { +const killApp = function (platform = 'android', packageName = config.MAIN_APP_PACKAGE): PromiseWithAbort { if (platform !== 'android') { throw new Error(`killApp() missing implementation for platform: ${platform}`); }