MCPcopy Create free account
hub / github.com/anus-dev/ANUS / createTestCommand

Function createTestCommand

packages/cli/src/ui/hooks/slashCommandProcessor.test.ts:90–100  ·  view source on GitHub ↗
(
  overrides: Partial<SlashCommand>,
  kind: CommandKind = CommandKind.BUILT_IN,
)

Source from the content-addressed store, hash-verified

88} from '@anus-dev/anus-core/index.js';
89
90function createTestCommand(
91 overrides: Partial<SlashCommand>,
92 kind: CommandKind = CommandKind.BUILT_IN,
93): SlashCommand {
94 return {
95 name: 'test',
96 description: 'a test command',
97 kind,
98 ...overrides,
99 };
100}
101
102describe('useSlashCommandProcessor', () => {
103 const mockAddItem = vi.fn();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected