diff --git a/tests/e2e/utils/killApp.js b/tests/e2e/utils/killApp.ts similarity index 68% rename from tests/e2e/utils/killApp.js rename to tests/e2e/utils/killApp.ts index 32cc75d3ef8a..889f345cf222 100644 --- a/tests/e2e/utils/killApp.js +++ b/tests/e2e/utils/killApp.ts @@ -1,11 +1,13 @@ import config from '../config'; import execAsync from './execAsync'; -export default function (platform = 'android', packageName = config.APP_PACKAGE) { +const killApp = function (platform = 'android', packageName = config.MAIN_APP_PACKAGE): Promise { if (platform !== 'android') { throw new Error(`killApp() missing implementation for platform: ${platform}`); } // Use adb to kill the app return execAsync(`adb shell am force-stop ${packageName}`); -} +}; + +export default killApp;