generating-unit-tests
Installation
SKILL.md
Unit Test Generator & Validator
When to use this skill
- User asks to generate tests for a file or function
- User wants to improve test coverage
- User mentions Jest, Vitest, Playwright, or Mocha
- User asks for edge case suggestions
- User wants to validate existing tests
Workflow
- Identify changed or target files
- Detect test framework in project
- Analyze code to understand testable units
- Generate test file with appropriate structure
- Include edge cases and error scenarios
- Run tests to validate
- Check coverage if configured