vitest_record_learning
Record a newly resolved Vitest error pattern, its root cause, and fix template into the Knowledge Bank for reuse during future migrations.
Instructions
Records a newly resolved error pattern, root cause, and fix template into the permanent Knowledge Bank.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Short descriptive name for the rule | |
| fixRule | Yes | The rule/pattern used to fix it | |
| rootCause | Yes | Why the error occurred in Vitest | |
| errorSignature | Yes | Regex pattern or substring matching the error | |
| commentTemplate | No | The mandatory code comment template |