test: add unit tests for skill-dispatcher module#240
test: add unit tests for skill-dispatcher module#240nikolasdehor wants to merge 1 commit intoSynkraAI:mainfrom
Conversation
Add 39 tests covering SkillDispatcher class: - Skill mapping for all primary agents and aliases - Agent persona resolution with fallback - Dispatch payload construction with tech stack flags - Skill output parsing: structured, JSON, markdown, plain text - Skip result creation and dispatch log formatting - Agent validation and available agents filtering
|
@nikolasdehor is attempting to deploy a commit to the Pedro Valério Lopez's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Adds comprehensive Jest unit test coverage for the .aios-core/core/orchestration/skill-dispatcher.js module (SkillDispatcher), exercising its agent mapping, dispatch payload construction, output parsing, and validation/log formatting behaviors.
Changes:
- Introduces a new
SkillDispatchertest suite with 39 unit tests across constructor, mapping, payload building, output parsing, logging, and validation paths. - Covers multiple
parseSkillOutputformats (structured objects, JSON in markdown blocks, plain JSON strings, plain text, truncation, and unknown types). - Verifies primary-vs-alias agent handling via
getAvailableAgents()and alias resolution for skill/persona lookups.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Consolidated into #426 |
Summary
Closes #239
Add 39 unit tests for the
SkillDispatcherclass in.aios-core/core/orchestration/skill-dispatcher.js(363 lines, previously 0% coverage).Test Coverage
Testing Approach
All 39 tests passing.