import { describe, expect, it } from 'vitest';
import { isInternalCollection } from '../../seo/audit-runner.js';
import { SEO_CONFIG_COLLECTION } from '../../seo/config-store.js';
/**
 * Regression guard for the `/llms.txt` leak (production review blocker): the
 * public surface must never list internal/system collections. `isInternalCollection`
 * is the single source of truth shared by the audit runner and `/llms.txt`.
 */
describe('isInternalCollection', () => {
    it('flags the explicit internal/system collections', () => {
        expect(isInternalCollection(SEO_CONFIG_COLLECTION)).toBe(true);
        expect(isInternalCollection('__seo_config__')).toBe(true);
        expect(isInternalCollection('page-tags')).toBe(true);
        expect(isInternalCollection('redirects')).toBe(true);
    });
    it('flags any `__`-prefixed convention collection (e.g. demo perf rows)', () => {
        expect(isInternalCollection('__seo_perf__')).toBe(true);
        expect(isInternalCollection('__anything__')).toBe(true);
    });
    it('allows real, public content collections', () => {
        expect(isInternalCollection('pages')).toBe(false);
        expect(isInternalCollection('posts')).toBe(false);
        expect(isInternalCollection('blog')).toBe(false);
        expect(isInternalCollection('case-studies')).toBe(false);
    });
});
//# sourceMappingURL=internal-collections.test.js.map