
Jest React Testing
This is a solid reference for anyone writing tests with Jest and React Testing Library. It walks through Jest config for both JavaScript and TypeScript projects, covers the query priority system (getByRole first, getByTestId as last resort), and includes practical patterns for mocking, async testing, and custom hooks. The setup file examples are especially useful since they handle common gotchas like mocking matchMedia and IntersectionObserver. You'll want this when you're setting up a new React project's test infrastructure or when your team needs alignment on testing philosophy. It follows the "test behavior, not implementation" approach throughout, which saves you from brittle tests that break on refactors.
- skills.sh installs
- 1.2K
- GitHub stars
- 63
- last updated
- Aug 21, 2026
Install
$ npx -y skills add manutej/luxor-claude-marketplace --skill jest-react-testing --agent claude-codeInstalls into .claude/skills of the current project.
Files
Jest React Testing
A comprehensive skill for testing React applications using Jest and React Testing Library. This skill covers everything from basic component testing to advanced patterns including mocking, async testing, custom hooks testing, and integration testing strategies.
When to Use This Skill
Use this skill when:
- Testing React components with Jest and React Testing Library
- Setting up Jest configuration for React projects
- Writing unit tests for components, hooks, and utilities
- Testing user interactions and component behavior
- Mocking modules, functions, API calls, and external dependencies
- Testing asynchronous operations (API calls, timers, promises)
- Testing custom React hooks
- Writing integration tests for complex component trees
- Debugging failing tests or improving test coverage
- Following testing best practices and patterns
Core Concepts
Testing Philosophy
React Testing Library follows these guiding principles:
Sponsors
Details
- Repository
- github.com/manutej/luxor-claude-marketplace
- Categories
- Frontend Development, Testing & QA
- First seen
- Apr 16, 2026
More from manutej/luxor-claude-marketplace
All 66- Pytest Patterns858
- Ui Design Patterns854
- Ux Principles838
- Frontend Architecture728
- Axum Web Framework659
- Alembic645
- Oauth2 Authentication603
- Aws Cloud Architecture595
- Fastapi Microservices Development590
- Wireframing568
- Expressjs Development562
- Mobile Design553
- Figma Design544
- Ci Cd Pipeline Patterns538
- Spring Boot Development536
- Enterprise Architecture Patterns530
- Rest Api Design Patterns527
- Responsive Design513
- Vuejs Development511
- Grpc Microservices510
- Hasura Graphql Engine506
- Asyncio Concurrency Patterns491
- Redis State Management490
- Rust Systems Programming488