LogoClawIndex
CasesSkillsAbout
LogoClawIndex

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.

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-29

Capabilities

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

Source

  • Spec: SKILL.md
React
Vitest
testing
unit testing
component testing
MSW
TDD
Write unit tests
Test React components
Test user interactions
Test custom hooks
React application source code
Test requirements
Target functions or components
Unit test files
Component test files
Test execution results