Files
stack/packages/mosaic/src/commands/interaction.test.ts
jason.woltje 0b621660c8
Some checks failed
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/publish Pipeline was canceled
feat(tess): wire durable interaction surfaces (#732)
2026-07-13 10:05:29 +00:00

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',
]);
});
});