generate-tests

Generate Jest or Vitest tests for JavaScript and TypeScript projects.

2|7|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/chidekina/aria-superpowers --skill generate-tests-chidekina
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-tests
Source: https://github.com/chidekina/aria-superpowers/tree/main/skills/generate-tests
Command: npx skills add https://github.com/chidekina/aria-superpowers --skill generate-tests-chidekina

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automate the creation of robust tests for JavaScript and TypeScript projects, reducing manual effort and improving coverage quality.

Core Features & Use Cases

  • Auto-generate unit and integration tests for exported functions and classes
  • Detect asynchronous functions, edge cases, and external dependencies to produce realistic mocks
  • Generate framework-ready test files for Jest or Vitest, with optional integration tests

Quick Start

Tell the AI to generate tests for a given source file by invoking /test with the file path.

Frequently Asked Questions about generate-tests

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

FAQPage Schema
How do I auto-generate Jest or Vitest tests for TypeScript and JavaScript projects?

To auto-generate Jest or Vitest tests for JavaScript and TypeScript projects, invoke the /test command with your target source file path. The tool detects exported functions and classes to automatically produce framework-ready test files.

Can I generate mocks for external dependencies when creating unit tests?

Yes, you can generate mocks for external dependencies when creating unit tests. The generation process detects external dependencies and asynchronous functions to automatically produce realistic mocks for robust test coverage.

How does automated test generation handle async functions and edge cases?

Automated test generation handles async functions and edge cases by detecting them during source file analysis. It identifies asynchronous operations and boundary conditions to produce framework-ready tests that target realistic scenarios.

Does this test generation approach support both unit and integration tests?

Yes, this test generation approach supports both unit and integration tests. It auto-generates test files for exported functions and classes, with explicit options to include integration tests alongside standard unit tests.

What is the best way to achieve target coverage without writing tests manually?

The best way to achieve target coverage without manual effort is using automated test generation. It analyzes your source code to detect edge cases and dependencies, generating realistic mocks and framework-ready tests to reach coverage goals.

Are write and watch workflows supported during JavaScript test generation?

Yes, write and watch workflows are supported during JavaScript test generation. These options allow you to continuously generate and update Jest or Vitest tests as your source files change.