Skip to main content
Back to registry

capture-api-response-test-fixture

vercel/ai

For provider response parsing tests, we aim at storing test fixtures with the true responses from the providers (unless they are too large in which case some cutting that does not change semantics is advised).

Installs377
Install command
npx skills add https://github.com/vercel/ai --skill capture-api-response-test-fixture
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
For provider response parsing tests, we aim at storing test fixtures with the true responses from the providers (unless they are too large in which case some cutting that does not change semantics is advised). The fixtures are stored in a __fixtures__ subfolder, e.g. packages/openai/src/responses/__fixtures__ . See the file names in packages/openai/src/responses/__fixtures__ for naming conventions and packages/openai/src/responses/openai-responses-language-model.test.ts for how to set up test helpers. You can use our examples under /examples/ai-functions to generate test fixtures. For generateText , log the raw response output to the console and copy it into a new test fixture. For streamText , you need to set includeRawChunks to true and use the special saveRawChunks helper. Run the script from the /example/ai-functions folder via pnpm tsx src/stream-text/script-name.ts . The result is then stored in the /examples/ai-functions/output folder.

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does capture-api-response-test-fixture do?

For provider response parsing tests, we aim at storing test fixtures with the true responses from the providers (unless they are too large in which case some cutting that does not change semantics is advised).

Is capture-api-response-test-fixture good?

capture-api-response-test-fixture does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does capture-api-response-test-fixture work with?

capture-api-response-test-fixture currently lists compatibility with codex, gemini-cli, opencode, cursor, claude-code, antigravity.

What are alternatives to capture-api-response-test-fixture?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install capture-api-response-test-fixture?

npx skills add https://github.com/vercel/ai --skill capture-api-response-test-fixture

Related skills

More from vercel/ai

Related skills

Alternatives in Software Engineering