pf-unit-test-generator
OfficialAuto-generate robust React unit tests.
Authorpatternfly
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Automatically generates a comprehensive unit test file for a given React component, reducing manual boilerplate and ensuring consistent test coverage across projects.
Core Features & Use Cases
- Generates a complete unit test file (e.g., ComponentName.test.tsx) structured for rendering, interactions, conditional rendering, async operations, and accessibility checks.
- Guides test organization with describe blocks such as rendering, user interactions, conditional rendering, and async operations.
- Follows best practices for React testing with React Testing Library and Jest, including preferred query patterns and safe mocking.
Quick Start
Provide the path to the component file or the component code to generate its tests.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: pf-unit-test-generator Download link: https://github.com/patternfly/ai-helpers/archive/main.zip#pf-unit-test-generator Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.