mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 12:52:11 +03:00
agentSkills-catalog.test.ts (30 tests): - getCatalog(): 42 total, 22 api, 20 cli - API_SKILL_IDS/CLI_SKILL_IDS length assertions - ID regex format, uniqueness, required fields - getSkillById happy path + null for unknown/empty - filterCatalog by category, area, combined, empty - refreshCatalog() invalidates cache (new array reference) - computeCoverage() shape validation - rawUrl/githubUrl URL format assertions agentSkills-openapiParser.test.ts (9 tests): - Fixture YAML: paths Map, area groupings (providers, api-keys, inference) - OpenapiPath field validation - Missing file throws - Empty paths YAML returns empty Maps - Real openapi.yaml: providers area ≥5 endpoints (integration) agentSkills-cliRegistryParser.test.ts (10 tests): - Fixture .mjs: commands Map, families Map, ≥5 provider subcommands - Description extraction, isSubcommand flag, flags extraction - Skips unrecognised files, throws on missing dir - Real providers.mjs: ≥5 commands (integration)
8.0 KiB
8.0 KiB