fix: mock renameWinArchive in microsoft-installer tests to fix Windows CI failure

This commit is contained in:
copilot-swe-agent[bot] 2026-06-25 11:45:37 +00:00 committed by GitHub
parent e2b889947b
commit 730e373df5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -262,6 +262,10 @@ describe('downloadTool', () => {
return '/tmp/cached';
});
jest
.spyOn(util, 'renameWinArchive')
.mockImplementation((archivePath: string) => `${archivePath}.zip`);
spyVerifySignature = jest.spyOn(gpg, 'verifyPackageSignature');
spyVerifySignature.mockImplementation(async () => {});
});