| 23 | const mockCommandB_Override = createMockCommand('command-b', CommandKind.FILE); |
| 24 | |
| 25 | class 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 | |
| 37 | describe('CommandService', () => { |
| 38 | beforeEach(() => { |
nothing calls this directly
no outgoing calls
no test coverage detected