diff options
| author | Shreya Keshive <[email protected]> | 2025-08-19 11:22:21 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-19 18:22:21 +0000 |
| commit | 4828e4daf198a675ce118cec08dcfbd0bfbb28a6 (patch) | |
| tree | 9a4441cea7a3aab3553175c9a9b310d4d5ffa732 /packages/cli/src/ui/commands/bugCommand.test.ts | |
| parent | 9588aa6ef971918b8acfeefdad4f6a33f93349cf (diff) | |
feat: Add IDE client to /bug & /about if IDE mode is enabled (#6567)
Diffstat (limited to 'packages/cli/src/ui/commands/bugCommand.test.ts')
| -rw-r--r-- | packages/cli/src/ui/commands/bugCommand.test.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/cli/src/ui/commands/bugCommand.test.ts b/packages/cli/src/ui/commands/bugCommand.test.ts index 89e3b561..2dfb3fe8 100644 --- a/packages/cli/src/ui/commands/bugCommand.test.ts +++ b/packages/cli/src/ui/commands/bugCommand.test.ts @@ -48,6 +48,10 @@ describe('bugCommand', () => { config: { getModel: () => 'gemini-pro', getBugCommand: () => undefined, + getIdeClient: () => ({ + getDetectedIdeDisplayName: () => 'VSCode', + }), + getIdeMode: () => true, }, }, }); @@ -63,6 +67,7 @@ describe('bugCommand', () => { * **Sandbox Environment:** test * **Model Version:** gemini-pro * **Memory Usage:** 100 MB +* **IDE Client:** VSCode `; const expectedUrl = 'https://github.com/google-gemini/gemini-cli/issues/new?template=bug_report.yml&title=A%20test%20bug&info=' + @@ -79,6 +84,10 @@ describe('bugCommand', () => { config: { getModel: () => 'gemini-pro', getBugCommand: () => ({ urlTemplate: customTemplate }), + getIdeClient: () => ({ + getDetectedIdeDisplayName: () => 'VSCode', + }), + getIdeMode: () => true, }, }, }); @@ -94,6 +103,7 @@ describe('bugCommand', () => { * **Sandbox Environment:** test * **Model Version:** gemini-pro * **Memory Usage:** 100 MB +* **IDE Client:** VSCode `; const expectedUrl = customTemplate .replace('{title}', encodeURIComponent('A custom bug')) |
