Skip to content

Commit 80e9c2b

Browse files
authored
Merge pull request #36466 from ruben-rebelo/ts-migration/e2e-kill-app
2 parents 8c17a70 + 15c8165 commit 80e9c2b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import config from '../config';
22
import execAsync from './execAsync';
33

4-
export default function (platform = 'android', packageName = config.APP_PACKAGE) {
4+
const killApp = function (platform = 'android', packageName = config.MAIN_APP_PACKAGE): Promise<void> {
55
if (platform !== 'android') {
66
throw new Error(`killApp() missing implementation for platform: ${platform}`);
77
}
88

99
// Use adb to kill the app
1010
return execAsync(`adb shell am force-stop ${packageName}`);
11-
}
11+
};
12+
13+
export default killApp;

0 commit comments

Comments
 (0)