test-schema

Community

Robust Zod schema tests with Vitest.

Authormadooei
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Validating data contracts in backend TypeScript projects can be error-prone and time-consuming. This skill provides a structured approach to writing Vitest tests for Zod schemas used across entities, DTO validation, and query parameter parsing, reducing regressions and enabling faster feedback.

Core Features & Use Cases

  • Create focused tests for entity schemas to verify required fields, types, and error messages.
  • Validate DTO schemas and query parameter schemas with consistent test patterns that scale across multiple entities.
  • Reuse test structures and conventions to maintain high coverage with minimal boilerplate.

Quick Start

Create tests/schemas/{entity-name}.schema.test.ts mirroring the source structure.

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: test-schema
Download link: https://github.com/madooei/backend-template/archive/main.zip#test-schema

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.