test(ship-driver): name ship/DRIVER.md.tmpl so the pregate maps the template to its test lane (GSTA-167)

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-30 14:34:03 +00:00
1 parent cc26ec7795
commit fc3e2b1847
1 file changed
+6
+6
View File
@@ -158,6 +158,12 @@ describe('shape', () => {
});
describe('generator inventory', () => {
test('the committed render names ship/DRIVER.md.tmpl as its source, and that template exists', () => {
const template = 'ship/DRIVER.md.tmpl';
expect(fs.existsSync(path.join(ROOT, template))).toBe(true);
expect(doc.split('\n')[0]).toBe(`<!-- AUTO-GENERATED from ${template} — do not edit directly -->`);
});
test('a fresh render carries ship/DRIVER.md as a claude asset, byte-identical to the committed file', async () => {
const written = await runGeneration({ host: 'claude', outputRoot: tmp, contentLinkRoot: null });
expect(written.artifacts).toContainEqual({ relativePath: SHIP_DRIVER_RELPATH, kind: 'asset', host: 'claude' });