unit-test-generator

Generate unit tests for JavaScript, TypeScript, and Python code.

1|Updated Sep 26, 2025
One-click install
npx skills add https://github.com/pascallammers/mylo-travel-concierge-v2 --skill unit-test-generator-pascallammers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unit-test-generator
Source: https://github.com/pascallammers/mylo-travel-concierge-v2/tree/main/.factory/skills/unit-test-generator
Command: npx skills add https://github.com/pascallammers/mylo-travel-concierge-v2 --skill unit-test-generator-pascallammers

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of unit tests, ensuring code quality and reliability by covering happy paths, edge cases, and error conditions.

Core Features & Use Cases

  • Automated Test Generation: Creates unit tests for functions, classes, and components.
  • Framework Agnostic: Auto-detects and uses project-specific test frameworks (Jest, Vitest, pytest, etc.).
  • Use Case: When you've written a new utility function, use this Skill to generate a complete suite of tests that verify its correctness under various scenarios before merging.

Quick Start

Generate unit tests for the provided TypeScript function.

Frequently Asked Questions about unit-test-generator

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

FAQPage Schema
How do I generate unit tests that cover edge cases and error conditions automatically?

You can generate unit tests for JavaScript and TypeScript by providing your code to the test generator. It auto-detects your project's test framework, such as Jest or Vitest, and produces matching test suites.

Can I use this test generator with Python and pytest?

Yes, the test generator supports Python and auto-detects the pytest framework. It analyzes your Python functions and generates test cases adhering to best practices for test organization and mocking.

What is the best way to increase code coverage for new utility functions?

The best way to increase code coverage is to use an automated test generation tool. It instantly creates test cases for all scenarios, including edge cases and error conditions, ensuring comprehensive coverage for your new utility functions.

Does the generated test suite include mocking for external dependencies?

Yes, the generated test suite includes mocking for external dependencies. It adheres to best practices for test organization and mocking to ensure your unit tests remain isolated and reliable across different scenarios.

Do I need to manually specify my testing framework to generate tests?

No, you do not need to manually specify your testing framework. The test generator auto-detects JavaScript and TypeScript frameworks like Jest and Vitest, as well as Python frameworks like pytest, to output compatible tests.