Skip to content

feat: add Vitest test infrastructure for agent validation#337

Open
toukanno wants to merge 1 commit intomsitarzewski:mainfrom
toukanno:feat/test-infrastructure
Open

feat: add Vitest test infrastructure for agent validation#337
toukanno wants to merge 1 commit intomsitarzewski:mainfrom
toukanno:feat/test-infrastructure

Conversation

@toukanno
Copy link

Summary

  • Introduce Vitest + TypeScript test framework with npm test integration
  • tests/agent-validation.test.ts: validates all agent markdown files across 14 category directories — checks YAML frontmatter presence (name, description), kebab-case file naming, and category directory population (642 assertions)
  • tests/install-validation.test.ts: verifies shell script syntax via bash -n for install.sh and convert.sh; marks install.ps1 as todo (not yet available upstream)
  • Includes fallback frontmatter parser for agent files with unquoted YAML values (e.g. colons in description fields)

Test plan

  • npm test passes: 642 passed, 1 todo
  • Verify tests run in CI (no CI config added yet — can be follow-up)
  • Review category list alignment with future directory additions

🤖 Generated with Claude Code

Introduces automated testing with Vitest to validate agent markdown
files and shell scripts. Tests cover frontmatter parsing (name,
description), kebab-case file naming, category directory population,
and bash syntax checks for install.sh/convert.sh.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant