zod-contract-testing
CommunityBoundary-tested schemas you can trust.
Software Engineering#refinement#zod#contract-testing#testing-patterns#schema-evolution#boundary-testing
Authorapankov1
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Boundary testing ensures that Zod schemas enforce runtime contracts at system boundaries, catching invalid data early and preventing schema drift from affecting downstream logic.
Core Features & Use Cases
- Validates inputs at boundaries using testValidInput and testInvalidInput, ensuring both acceptance and rejection cases.
- Supports schema evolution testing and version compatibility checks with testSchemaEvolution, generateVersionCompatibilityMatrix, and assertVersionCompatibility.
- Provides refinement testing with testRefinement and compound state matrix generation for 2^N optional fields.
- Demonstrates integration-ready patterns for boundary validation in API handlers, WebSocket messages, and data ingestion.
Quick Start
Run the boundary-testing workflow on a sample Zod schema to verify valid/invalid inputs and evolution rules.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: zod-contract-testing Download link: https://github.com/apankov1/quality-engineering/archive/main.zip#zod-contract-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 223,000+ vetted skills library on demand.