What problem does it solve?
Shared Zod contracts and their JSON fixtures can drift apart, leading to regression bugs and invalid payload validation; this skill anchors fixtures against every schema to catch those issues early.
Core Features & Use Cases
- Fixture Validation: Map each shared JSON fixture in packages/contracts/fixtures to its corresponding schema and assert success with Vitest-powered Zod parsing.
- Regression Guardrails: Enforce creation of fixtures for every contract change, cover both valid and invalid input scenarios, and refuse merging until CI reruns fixture validation.
- Use Case: When adding or modifying a schema such as LoginRequestSchema, update the fixtures, run the validation suite, and confirm that both the valid fixture and crafted invalid data behave as expected.
Quick Start
Validate the shared JSON fixtures inside packages/contracts against their Zod schemas using the contract-testing patterns before merging any contract changes.