vitest-react-testing - Write React Tests with Vitest and Testing Library
Write unit and component tests with Vitest, React Testing Library, and MSW using a TDD workflow.
Tags
Updated: 2026-09-29Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Write unit tests
- Test React components
- Test user interactions
- Test custom hooks
- Mock API requests
- Write async tests
- Follow TDD workflow
Inputs
- React application source code
- Test requirements
- Target functions or components
- API request scenarios
Outputs
- Unit test files
- Component test files
- Test execution results
Requirements
- Vitest support
- React Testing Library support
- MSW support
- jsdom test environment
