testing-flow
Installation
SKILL.md
Testing a Robomotion Flow
Run behavioral tests for a Robomotion flow. Uses @robomotion/sdk/testing + bun test.
For pspec schema validation, use validating-flow.
Purpose
- Execute
*.test.tsfiles withbun test - Author new tests with FlowTester, MockRegistry, SubflowTester
- Inspect structure, mock services, trace execution, exercise Function-node logic
Workflow
- Check for tests —
ls path/to/flow/*.test.ts - Run —
cd path/to/flow && bun test - Fix failures — diagnose, edit, re-run