test(hermes): use parseFrontmatter for agent assertion (CR #2920)

This commit is contained in:
Tom Boucher
2026-04-30 21:44:12 -04:00
parent b5777572f7
commit e5cd523e7b

View File

@@ -250,7 +250,8 @@ describe('Hermes Agent: copyCommandsAsClaudeSkills', () => {
copyCommandsAsClaudeSkills(srcDir, skillsDir, 'gsd', '/test/', 'hermes', false);
const content = fs.readFileSync(path.join(skillsDir, 'gsd-execute', 'SKILL.md'), 'utf8');
assert.ok(content.includes('agent: gsd-executor'), 'agent field preserved');
const fm = parseFrontmatter(content);
assert.strictEqual(fm.agent, 'gsd-executor', 'agent field preserved');
});
});