/// <reference types="bun-types" />
import { describe, expect, test } from 'bun:test';
import { loadCommands } from '../../src/index';
describe('loadCommands', () => {
test('loads command templates from the command directory', async () => {
const commands = await loadCommands();
const names = commands.map((command) => command.name);
expect(commands.length).toBeGreaterThan(0);
expect(names).toContain('pijul-init');
expect(names).toContain('pijul-sync');
const initCommand = commands.find((command) => command.name === 'pijul-init');
expect(initCommand?.template).toContain('Call `pijul_manager`');
});
});