From a0761f0c41942d5981306f99e78aca40588d28fa Mon Sep 17 00:00:00 2001 From: Allen Hutchison Date: Wed, 21 May 2025 13:31:18 -0700 Subject: Fix: Resolve CLI version reporting in /bug command (#455) --- packages/cli/src/ui/hooks/slashCommandProcessor.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.test.ts') diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts index a17fcd1e..beee1418 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts @@ -102,6 +102,7 @@ describe('useSlashCommandProcessor', () => { mockOpenThemeDialog, mockPerformMemoryRefresh, mockCorgiMode, + 'test-version', ), ); return result.current; @@ -248,7 +249,7 @@ describe('useSlashCommandProcessor', () => { sandboxEnvVar?: string, seatbeltProfileVar?: string, ) => { - const cliVersion = process.env.npm_package_version || 'Unknown'; + const cliVersion = 'test-version'; const osVersion = `${process.platform} ${process.version}`; let sandboxEnvStr = 'no sandbox'; if (sandboxEnvVar && sandboxEnvVar !== 'sandbox-exec') { -- cgit v1.2.3