Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

301 B
Raw Blame
import { expect, it } from 'vitest';

import { createProgram } from './commands';

it('rejects an unknown command', async () => {
  const program = createProgram();
  await expect(program.parseAsync(['node', 'test', 'missing'])).rejects.toMatchObject({
    code: 'commander.unknownCommand',
  });
});