summaryrefslogtreecommitdiff
path: root/packages/cli/src/services/CommandService.test.ts
diff options
context:
space:
mode:
authorBrian Ray <[email protected]>2025-07-15 22:35:05 -0400
committerGitHub <[email protected]>2025-07-16 02:35:05 +0000
commit0903421b1a1c5b43f4271e779aafa440ffec595c (patch)
tree00c289e3cb67076093e1c5523bcff892301be359 /packages/cli/src/services/CommandService.test.ts
parentb72e3dfb43acc3faf8099fa758a4283b83f32ff6 (diff)
Move MCP slash command to new system (#3678)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: Abhi <[email protected]>
Diffstat (limited to 'packages/cli/src/services/CommandService.test.ts')
-rw-r--r--packages/cli/src/services/CommandService.test.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/cli/src/services/CommandService.test.ts b/packages/cli/src/services/CommandService.test.ts
index 1ee78e8c..3bc618a2 100644
--- a/packages/cli/src/services/CommandService.test.ts
+++ b/packages/cli/src/services/CommandService.test.ts
@@ -18,6 +18,7 @@ import { privacyCommand } from '../ui/commands/privacyCommand.js';
import { aboutCommand } from '../ui/commands/aboutCommand.js';
import { compressCommand } from '../ui/commands/compressCommand.js';
import { extensionsCommand } from '../ui/commands/extensionsCommand.js';
+import { mcpCommand } from '../ui/commands/mcpCommand.js';
// Mock the command modules to isolate the service from the command implementations.
vi.mock('../ui/commands/memoryCommand.js', () => ({
@@ -50,9 +51,12 @@ vi.mock('../ui/commands/compressCommand.js', () => ({
vi.mock('../ui/commands/extensionsCommand.js', () => ({
extensionsCommand: { name: 'extensions', description: 'Mock Extensions' },
}));
+vi.mock('../ui/commands/mcpCommand.js', () => ({
+ mcpCommand: { name: 'mcp', description: 'Mock MCP' },
+}));
describe('CommandService', () => {
- const subCommandLen = 11;
+ const subCommandLen = 12;
describe('when using default production loader', () => {
let commandService: CommandService;
@@ -91,6 +95,7 @@ describe('CommandService', () => {
expect(commandNames).toContain('about');
expect(commandNames).toContain('compress');
expect(commandNames).toContain('extensions');
+ expect(commandNames).toContain('mcp');
});
it('should overwrite any existing commands when called again', async () => {
@@ -124,6 +129,7 @@ describe('CommandService', () => {
compressCommand,
extensionsCommand,
helpCommand,
+ mcpCommand,
memoryCommand,
privacyCommand,
statsCommand,