test(section-manifest): the shared sections/preamble.md renders from the hoist resolver, not a section template (GSTA-96)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
garrytanandcapy-ai[bot] committed 2026-10-26 00:47:56 +00:00
1 parent b3313cf897
commit 3ef4be8783
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -21,6 +21,7 @@
import { describe, test, expect } from 'bun:test';
import * as fs from 'fs';
import * as path from 'path';
import { SHARED_PREAMBLE_FILE } from './helpers/skill-startup';
const ROOT = path.resolve(import.meta.dir, '..');
@@ -77,7 +78,7 @@ describe('section manifest ↔ filesystem consistency', () => {
});
test('no generated orphan: every sections/X.md has a sections/X.md.tmpl → FAIL', () => {
const orphans = sectionMds.filter(md => !sectionTmpls.includes(`${md}.tmpl`));
const orphans = sectionMds.filter(md => md !== SHARED_PREAMBLE_FILE && !sectionTmpls.includes(`${md}.tmpl`));
expect(orphans).toEqual([]);
});