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