summaryrefslogtreecommitdiff
path: root/packages/cli/src/test-utils/mockCommandContext.ts
diff options
context:
space:
mode:
authorAbhi <[email protected]>2025-07-23 16:11:23 -0400
committerGitHub <[email protected]>2025-07-23 20:11:23 +0000
commitbbe95f1eaa8f5351c58e0866ba938415db7891e4 (patch)
tree045bd725f24d5b197b5cebaad3a4074c14a99ba1 /packages/cli/src/test-utils/mockCommandContext.ts
parent2d1eafae95b7a140ac42ea5899f2f4ff6bca80ae (diff)
feat(commands): Implement argument handling for custom commands via a prompt pipeline (#4702)
Diffstat (limited to 'packages/cli/src/test-utils/mockCommandContext.ts')
-rw-r--r--packages/cli/src/test-utils/mockCommandContext.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/cli/src/test-utils/mockCommandContext.ts b/packages/cli/src/test-utils/mockCommandContext.ts
index b760122b..cf450484 100644
--- a/packages/cli/src/test-utils/mockCommandContext.ts
+++ b/packages/cli/src/test-utils/mockCommandContext.ts
@@ -28,6 +28,11 @@ export const createMockCommandContext = (
overrides: DeepPartial<CommandContext> = {},
): CommandContext => {
const defaultMocks: CommandContext = {
+ invocation: {
+ raw: '',
+ name: '',
+ args: '',
+ },
services: {
config: null,
settings: { merged: {} } as LoadedSettings,