summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts
diff options
context:
space:
mode:
authorAllen Hutchison <[email protected]>2025-05-21 13:31:18 -0700
committerGitHub <[email protected]>2025-05-21 13:31:18 -0700
commita0761f0c41942d5981306f99e78aca40588d28fa (patch)
treef6d954c416cb1e60976d7a231ab843d9bed8abbf /packages/cli/src/ui/hooks/slashCommandProcessor.test.ts
parent00ab1905e0b252a70e2171b3f83d36adb7fec250 (diff)
Fix: Resolve CLI version reporting in /bug command (#455)
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.test.ts')
-rw-r--r--packages/cli/src/ui/hooks/slashCommandProcessor.test.ts3
1 files changed, 2 insertions, 1 deletions
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') {