Testing Core Error Processors How to write integration tests for error processors in . Prerequisites - Build core before running tests: (from repo root) - If focused vitest runs fail to resolve , the build step was skipped Mock Model Pattern Use from to simulate API errors and verify retry behavior. Stream Mock Gotcha The stream mock format requires , , , , , and events. Using only + (the minimal format) will result in empty text output because the AI SDK expects the full event sequence. See for the reference pattern. Test Structure For each error processor, write at minimum: 1. Happy path :…