|
| 1 | +import { describe, it, expect } from 'vitest'; |
| 2 | +import { compileCommand } from '../src/commands/compile'; |
| 3 | +import { serveCommand } from '../src/commands/serve'; |
| 4 | +import { devCommand } from '../src/commands/dev'; |
| 5 | +import { doctorCommand } from '../src/commands/doctor'; |
| 6 | +import { createCommand } from '../src/commands/create'; |
| 7 | +import { testCommand } from '../src/commands/test'; |
| 8 | + |
| 9 | +describe('CLI Commands', () => { |
| 10 | + it('should have compile command', () => { |
| 11 | + expect(compileCommand.name()).toBe('compile'); |
| 12 | + expect(compileCommand.description()).toContain('Compile'); |
| 13 | + }); |
| 14 | + |
| 15 | + it('should have serve command', () => { |
| 16 | + expect(serveCommand.name()).toBe('serve'); |
| 17 | + expect(serveCommand.description()).toContain('server'); |
| 18 | + }); |
| 19 | + |
| 20 | + it('should have dev command', () => { |
| 21 | + expect(devCommand.name()).toBe('dev'); |
| 22 | + expect(devCommand.description()).toContain('development mode'); |
| 23 | + }); |
| 24 | + |
| 25 | + it('should have doctor command', () => { |
| 26 | + expect(doctorCommand.name()).toBe('doctor'); |
| 27 | + expect(doctorCommand.description()).toContain('health'); |
| 28 | + }); |
| 29 | + |
| 30 | + it('should have create command', () => { |
| 31 | + expect(createCommand.name()).toBe('create'); |
| 32 | + expect(createCommand.description()).toContain('Create'); |
| 33 | + }); |
| 34 | + |
| 35 | + it('should have test command', () => { |
| 36 | + expect(testCommand.name()).toBe('test:run'); |
| 37 | + expect(testCommand.description()).toContain('Quality Protocol'); |
| 38 | + }); |
| 39 | +}); |
0 commit comments