import { describe, expect, it } from 'vitest';
import { effectiveCommitTemplateName, isSdkApiCommitTemplate, isSdkApiTemplate, LEGACY_COMMIT_TEMPLATE_NAME } from './index';
describe('SDK API application templates', () => {
    it('classifies app-fullstack as the 3.0 SDK API template', () => {
        expect(isSdkApiTemplate('app-fullstack')).toBe(true);
        expect(isSdkApiCommitTemplate('app-fullstack')).toBe(true);
    });
    it.each([undefined, null, '', LEGACY_COMMIT_TEMPLATE_NAME, 'shadcn-demo-app'])('classifies %s as a legacy non-SDK API commit template', (templateName) => {
        expect(isSdkApiCommitTemplate(templateName)).toBe(false);
    });
    it('normalizes missing commit templates to the legacy template name', () => {
        expect(effectiveCommitTemplateName(undefined)).toBe(LEGACY_COMMIT_TEMPLATE_NAME);
        expect(effectiveCommitTemplateName(null)).toBe(LEGACY_COMMIT_TEMPLATE_NAME);
    });
});
//# sourceMappingURL=index.test.js.map