test-generator

Generates Jest test suites, MSW mocks, and coverage validation for new features.

1|Updated Apr 27, 2026
One-click install
npx skills add https://github.com/Saurav-snapwork/NewAppTemplate --skill test-generator-saurav-snapwork
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-generator
Source: https://github.com/Saurav-snapwork/NewAppTemplate/tree/main/.github/skills/test-generator
Command: npx skills add https://github.com/Saurav-snapwork/NewAppTemplate --skill test-generator-saurav-snapwork

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Authentically ensures new features are thoroughly tested by generating unit tests for domain, data, and state layers, as well as integration tests for API data flows and MSW mock handlers, while enforcing coverage thresholds before the Final Validator gates the feature.

Core Features & Use Cases

  • Generates unit tests for domain and data layers, plus co-located state slice tests with thorough coverage checks.
  • Creates integration tests for API data flows using MSW mocks and a centralized handler registry.
  • Produces Jest configuration and a coverage validation workflow to ensure the feature meets threshold requirements.

Quick Start

Run this skill after code generation to automatically create test scaffolding, MSW handlers, and coverage configuration for the new feature.

Frequently Asked Questions about test-generator

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

FAQPage Schema
How do I auto-generate Jest unit tests for newly created feature code?

To auto-generate Jest unit tests, run this skill after feature code generation to automatically scaffold test suites for domain, data, and state layers. It produces complete Jest configurations and MSW mocks to ensure thorough coverage of newly created code.

How does MSW mock handler integration work for API data flow testing?

MSW mock handler integration works by creating a centralized handler registry that intercepts API calls during integration tests. This skill generates these MSW mocks alongside your test suite to validate API data flows without requiring live backend services.

Do I need to manually configure Jest coverage thresholds for new features?

You do not need to manually configure Jest coverage thresholds. This skill automatically generates Jest configuration and a coverage validation workflow, enforcing threshold requirements for new features before the Final Validator gates the feature.

Can I generate integration tests for API data flows alongside unit tests?

Yes, you can generate integration tests for API data flows alongside unit tests. This skill creates integration tests using MSW mocks and a centralized handler registry, while simultaneously scaffolding unit tests for domain, data, and state layers.

What is the best way to validate test coverage before gating a feature?

The best way to validate test coverage before gating a feature is to use an automated coverage validation workflow. This skill generates the required Jest configuration and enforces coverage thresholds, ensuring the Final Validator successfully gates the completed feature.