MCPcopy Index your code
hub / github.com/anus-dev/ANUS / MockCommandLoader

Class MockCommandLoader

packages/cli/src/services/CommandService.test.ts:25–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23const mockCommandB_Override = createMockCommand('command-b', CommandKind.FILE);
24
25class MockCommandLoader implements ICommandLoader {
26 private commandsToLoad: SlashCommand[];
27
28 constructor(commandsToLoad: SlashCommand[]) {
29 this.commandsToLoad = commandsToLoad;
30 }
31
32 loadCommands = vi.fn(
33 async (): Promise<SlashCommand[]> => Promise.resolve(this.commandsToLoad),
34 );
35}
36
37describe('CommandService', () => {
38 beforeEach(() => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected