capture-api-response-test-fixture

Community

Store true API responses as test fixtures.

AuthorHadimetlej
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a structured approach to storing authentic provider API responses as test fixtures for deterministic AI testing. It ensures tests can rely on the true responses from providers, while offering guidance on handling large payloads via truncation that preserves semantics.

Core Features & Use Cases

  • Store authentic provider responses in a dedicated fixtures folder to power reliable parsing tests.
  • Use test fixtures with both raw responses and streamed variants, following patterns demonstrated in generateText and streamText examples.
  • Follow naming conventions visible in packages/openai/src/responses/fixtures and leverage existing test helpers to load and compare fixtures.

Quick Start

Place your fixture data inside the fixtures folder alongside the relevant tests and reference the test helper examples to integrate into your suite.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: capture-api-response-test-fixture
Download link: https://github.com/Hadimetlej/VERCEL-AI/archive/main.zip#capture-api-response-test-fixture

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.