mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Introduce IDE mode installer (#4877)
This commit is contained in:
@@ -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', () => ({
|
||||
|
||||
Reference in New Issue
Block a user