AI AGENT ADDONS

Capture Api Response Test Fixture

vercel/ai
Testing & QA
1,044installs

Testing AI models often needs real response data. This skill helps you capture actual API responses from providers like OpenAI. You can save those responses as test fixtures to use in your tests.

The fixtures go in a special __fixtures__ folder. For generateText tests you log the raw response and copy it into a new file. For streamText tests you set a flag and use a helper to save raw chunks directly.

This makes your tests more accurate because they use real data. The examples in the skill show you exactly how to get started. It is a simple way to improve your test quality.

Add Capture Api Response Test Fixture skill to your workflow

Global

mkdir -p ~/.claude/skills/capture-api-response-test-fixture

Project

mkdir -p .claude/skills/capture-api-response-test-fixture

Source Repository

Stars
25,211
Forks
4,673
Watchers
25,211
License
NOASSERTION
Last Push
23 days ago
Created
3 years ago