diff options
| author | owenofbrien <[email protected]> | 2025-08-15 10:15:54 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-15 15:15:54 +0000 |
| commit | ddbe65e8c32cef67f7562b7f02aaf6e9fefb6968 (patch) | |
| tree | e3104527d95a33dd45ca8e2511c8e31b005e6ba9 /packages/cli/src/ui/commands/bugCommand.test.ts | |
| parent | a92299069d06c49fdb01dcab6dcdb9c8001b1c52 (diff) | |
Add session id to session summary and /bug template (#6313)
Co-authored-by: Bryan Morgan <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/commands/bugCommand.test.ts')
| -rw-r--r-- | packages/cli/src/ui/commands/bugCommand.test.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/cli/src/ui/commands/bugCommand.test.ts b/packages/cli/src/ui/commands/bugCommand.test.ts index 1a618fd1..89e3b561 100644 --- a/packages/cli/src/ui/commands/bugCommand.test.ts +++ b/packages/cli/src/ui/commands/bugCommand.test.ts @@ -16,6 +16,7 @@ import { formatMemoryUsage } from '../utils/formatters.js'; vi.mock('open'); vi.mock('../../utils/version.js'); vi.mock('../utils/formatters.js'); +vi.mock('@google/gemini-cli-core'); vi.mock('node:process', () => ({ default: { platform: 'test-platform', @@ -30,6 +31,9 @@ describe('bugCommand', () => { beforeEach(() => { vi.mocked(getCliVersion).mockResolvedValue('0.1.0'); vi.mocked(formatMemoryUsage).mockReturnValue('100 MB'); + vi.mock('@google/gemini-cli-core', () => ({ + sessionId: 'test-session-id', + })); vi.stubEnv('SANDBOX', 'gemini-test'); }); @@ -54,6 +58,7 @@ describe('bugCommand', () => { const expectedInfo = ` * **CLI Version:** 0.1.0 * **Git Commit:** ${GIT_COMMIT_INFO} +* **Session ID:** test-session-id * **Operating System:** test-platform v20.0.0 * **Sandbox Environment:** test * **Model Version:** gemini-pro @@ -84,6 +89,7 @@ describe('bugCommand', () => { const expectedInfo = ` * **CLI Version:** 0.1.0 * **Git Commit:** ${GIT_COMMIT_INFO} +* **Session ID:** test-session-id * **Operating System:** test-platform v20.0.0 * **Sandbox Environment:** test * **Model Version:** gemini-pro |
