chore: update tests with removed exclude from cli tsconfig (#11540)

This commit is contained in:
Adam Weidman
2025-10-21 01:40:54 +02:00
committed by GitHub
parent 70a99af1d3
commit 723b8d33c2
5 changed files with 41 additions and 43 deletions

View File

@@ -26,7 +26,7 @@ vi.mock('./updateEventEmitter.js', async () => {
return {
...actual,
updateEventEmitter: {
...actual.updateEventEmitter,
...(actual['updateEventEmitter'] as EventEmitter),
emit: vi.fn(),
},
};
@@ -247,7 +247,13 @@ describe('handleAutoUpdate', () => {
});
it('should use the "@nightly" tag for nightly updates', async () => {
mockUpdateInfo.update.latest = '2.0.0-nightly';
mockUpdateInfo = {
...mockUpdateInfo,
update: {
...mockUpdateInfo.update,
latest: '2.0.0-nightly',
},
};
mockGetInstallationInfo.mockReturnValue({
updateCommand: 'npm i -g @google/gemini-cli@latest',
updateMessage: 'This is an additional message.',