test-generator

Generate Vitest test files for server code with database setup and teardown.

Updated Dec 5, 2025
One-click install
npx skills add https://github.com/betterbrand/dealflow-network --skill test-generator-betterbrand
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-generator
Source: https://github.com/betterbrand/dealflow-network/tree/main/.claude/skills/test-generator
Command: npx skills add https://github.com/betterbrand/dealflow-network --skill test-generator-betterbrand

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the tedious and repetitive task of writing Vitest tests, ensuring consistency with project patterns and reducing setup overhead.

Core Features & Use Cases

  • Test Scaffolding: Generates test files in server/ with naming pattern test-*.test.ts and sets up a consistent test structure.
  • Database-aware Tests: Provides boilerplate for DB setup/teardown aligned with project patterns.
  • API & Feature Coverage: Helps scaffold tests for new features, database operations, or API endpoints.

Quick Start

Run the skill to generate a new test file under server/ matching the pattern test-*.test.ts and use the provided templates to fill in setup/teardown and assertions.

Frequently Asked Questions about test-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate test files for my Vitest project automatically?

Vitest test generation automates creating test files with proper setup, teardown, and assertions. This Skill generates test files following your project's naming conventions and patterns, reducing manual scaffolding overhead and ensuring consistency across your test suite.

Can I generate tests for database operations in my TypeScript server?

Yes. This Skill generates Vitest tests with database-aware boilerplate including setup and teardown logic aligned with server patterns. It handles test scaffolding for database operations, API endpoints, and new features in TypeScript server code.

What's the best way to keep test structure consistent across a project?

Automated test generation enforces consistent structure through templates and naming patterns. This Skill generates tests following the server/test-*.test.ts convention with standardized describe/it blocks and assertion styles, eliminating inconsistency across your codebase.

Do I need to write boilerplate for every Vitest test file?

No. This Skill eliminates repetitive boilerplate by generating test file scaffolds with database setup, teardown blocks, and assertion patterns pre-configured. You focus on test logic rather than structural overhead.

Can this work for API endpoint testing in TypeScript servers?

Yes. The Skill generates test files for API endpoints and server features with appropriate setup patterns and assertion styles. It applies project-specific conventions to ensure generated tests integrate seamlessly with your existing server test suite.