From c2b5836e1ee569debd4158fef3e84aa6a8bbed11 Mon Sep 17 00:00:00 2001 From: Meisam Seyed Aliroteh Date: Wed, 29 May 2024 10:09:34 -0700 Subject: [PATCH] chore: update script and unit test --- package.json | 2 +- test/unit/common/AndroidUtils.test.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4abc782..d75928c 100644 --- a/package.json +++ b/package.json @@ -117,7 +117,7 @@ "format": "wireit", "format:check": "wireit", "lint": "wireit", - "postinstall": "yarn husky install", + "prepare": "husky install", "postpack": "shx rm -f oclif.manifest.json oclif.lock", "prepack": "yarn clean-all && npm run sf-prepack", "sf-prepack": "sf-prepack", diff --git a/test/unit/common/AndroidUtils.test.ts b/test/unit/common/AndroidUtils.test.ts index 1ede50d..88e0cfa 100644 --- a/test/unit/common/AndroidUtils.test.ts +++ b/test/unit/common/AndroidUtils.test.ts @@ -59,6 +59,8 @@ describe('Android utils', () => { }; beforeEach(() => { + stubMethod($$.SANDBOX, CommonUtils, 'delay').returns(Promise.resolve()); + stubMethod($$.SANDBOX, AndroidUtils, 'getAndroidSdkRoot').returns({ rootLocation: mockAndroidHome, rootSource: AndroidSDKRootSource.androidHome