vitest-unit-component-engineer
CommunityShip reliable Vitest tests with real proof.
Software Engineering#vitest#unit testing#component testing#mocking#deterministic#testing library#jsdom
Authornguyenpv1980-wq
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill removes guesswork from Vitest testing by helping you write fast, deterministic unit and component tests that match the actual behavior of your code.
Core Features & Use Cases
- Environment Selection: Chooses node for pure logic and jsdom or happy-dom only when DOM behavior is real and needed.
- Behavior-Focused Testing: Uses observable outcomes, Testing Library queries, and userEvent instead of implementation-coupled assertions.
- Deterministic Test Design: Handles fake timers, owned-boundary mocks, and setup changes while avoiding flaky network, time, and randomness dependence.
- Real Execution Reporting: Runs the suite manually and reports the exact command plus genuine pass/fail output.
- Use Case: A developer needs tests for a currency formatter, a reducer, and a React invoice row component, with clear environment choices and honest results.
Quick Start
Ask the skill to write or fix Vitest tests for a utility or component suite, and include the files, behavior to cover, and any environment or setup constraints.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: vitest-unit-component-engineer Download link: https://github.com/nguyenpv1980-wq/Project-Aegis/archive/main.zip#vitest-unit-component-engineer 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 545,000+ vetted skills library on demand.