diff options
| author | christine betts <[email protected]> | 2025-07-30 21:26:31 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-30 21:26:31 +0000 |
| commit | 7bc876654254d9a11d66135735ad10f1066ad213 (patch) | |
| tree | 3b21e328199f8631c0d865fdf041103c18bd261e /packages/cli/src/ui/hooks/slashCommandProcessor.test.ts | |
| parent | c1fe6889569610878c45216556fb99424b5bcba4 (diff) | |
Introduce IDE mode installer (#4877)
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.test.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/slashCommandProcessor.test.ts | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts index 30a14815..2dc206d7 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts @@ -16,6 +16,7 @@ vi.mock('@google/gemini-cli-core', async (importOriginal) => { ...original, logSlashCommand, SlashCommandEvent, + getIdeInstaller: vi.fn().mockReturnValue(null), }; }); @@ -23,11 +24,16 @@ const { mockProcessExit } = vi.hoisted(() => ({ mockProcessExit: vi.fn((_code?: number): never => undefined as never), })); -vi.mock('node:process', () => ({ - default: { +vi.mock('node:process', () => { + const mockProcess = { exit: mockProcessExit, - }, -})); + platform: 'test-platform', + }; + return { + ...mockProcess, + default: mockProcess, + }; +}); const mockBuiltinLoadCommands = vi.fn(); vi.mock('../../services/BuiltinCommandLoader.js', () => ({ |
