Creates a fake command capability.
const commands = createFakeCommands();const registration = commands.register('sample.refresh', () => 3);await expect(commands.execute('sample.refresh')).resolves.toBe(3);registration.dispose();expect(commands.registeredIds).toEqual([]); Copy
const commands = createFakeCommands();const registration = commands.register('sample.refresh', () => 3);await expect(commands.execute('sample.refresh')).resolves.toBe(3);registration.dispose();expect(commands.registeredIds).toEqual([]);
Creates a fake command capability.