Files
stack-mos-dt-0/packages/mosaic/src/commands/interaction.test.ts
T

24 lines
684 B
TypeScript

import { describe, expect, it } from 'vitest';
import { Command } from 'commander';
import { registerInteractionCommand } from './interaction.js';
describe('generic interaction CLI', (): void => {
it('registers every required interaction verb without an instance-specific command name', () => {
const program = new Command();
const command = registerInteractionCommand(program);
expect(command.name()).toBe('interaction');
expect(command.commands.map((item) => item.name()).sort()).toEqual([
'attach',
'chat',
'enroll',
'health',
'recover',
'send',
'sessions',
'status',
'stop',
'tree',
]);
});
});