mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
Introduce IDE mode installer (#4877)
This commit is contained in:
parent
cb6a2161fe
commit
3e1b2dc33a
18 changed files with 433 additions and 277 deletions
|
|
@ -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', () => ({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue