ai-sdk-testing
CommunityDeterministic tests for the Vercel AI SDK.
Authorjonmumm
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill enables writing deterministic, fast tests for code that uses the Vercel AI SDK. LLM calls are slow, nondeterministic, and expensive — never call real providers in tests. Instead, use the SDK's built-in mock providers (ai/test) to control outputs exactly, and assert on the behavior of your code around those outputs.
Core Features & Use Cases
- Deterministic mocks for language and embedding models (MockLanguageModelV3, MockEmbeddingModelV3) and utilities like mockId and mockValues.
- Test generation, streaming, and structured output parsing without real LLM calls.
- Integrations for testing in cloud workers, nightshift/ralph-tdd/swarm loops and UI streaming endpoints using simulateReadableStream.
Quick Start
Use the ai-sdk-testing skill to create a deterministic test for a module that consumes ai.generateText and ai.streamText, asserting outputs without contacting real providers.
Dependency Matrix
Required Modules
None requiredComponents
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: ai-sdk-testing Download link: https://github.com/jonmumm/skills/archive/main.zip#ai-sdk-testing Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.