This guide explains how to test error processors with `MockLanguageModelV2`, including simulating API errors, verifying retry behavior, and constructing complete stream events. It outlines happy-path, control, and selectivity tests, shows how to seed tool-call messages, and provides commands for running focused or broader test suites.
90%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Scanned
mastra-ai/mastra
7f5453c
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.