testing-react-with-vitest

Installation
SKILL.md

Testing React with Vitest

Expert guidance for writing great Vitest tests for React applications using React Testing Library.

Quick Start

Testing... Reference File Key Topics
Core Vitest setup, matchers, spies core-vitest describe, it, expect, vi.fn, vi.mock, timers
RTL queries, render, screen react-testing-library render, screen, queries, waitFor, debug
User interactions user-event setup, click, type, keyboard, async events
Sociable tests, stubs, boundaries sociable-testing Real components, stub boundaries, functional core
Custom hooks with renderHook custom-hooks renderHook, act, providers, cleanup
Component testing patterns component-patterns Forms, modals, lists, error boundaries, a11y
jest-dom assertion matchers assertions toBeInTheDocument, toBeVisible, toHaveTextContent

Testing Philosophy

These principles are non-negotiable defaults for all React testing advice.

Related skills

More from bnadlerjr/dotfiles

Installs
1
GitHub Stars
5
First Seen
Mar 28, 2026