
React19 Test Patterns
github/awesome-copilotOfficial
Migration patterns for React 19 test files, covering act() imports, Simulate-to-fireEvent swaps, and StrictMode call counts.
- skills.sh installs
- 1.3K
- GitHub stars
- 41.4K
- last updated
- Aug 21, 2026
What it does
- Covers the six-step fix order, from the
actimport fix through custom render helper verification - Includes before/after snippets for
act,Simulatereplaced byfireEvent, and a fullreact-dom/test-utilsAPI map - Maps removed helpers such as
renderIntoDocumentandfindRenderedDOMComponentWithTagto Testing Library queries - Designed for teams migrating Jest or React Testing Library suites to React 19 compatibility
Install
$ npx -y skills add github/awesome-copilot --skill react19-test-patterns -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
React 19 Test Migration Patterns
Reference for all test file migrations required by React 19.
Priority Order
Fix test files in this order; each layer depends on the previous:
actimport fix first, it unblocks everything elseSimulate→fireEventfix immediately after act- Full react-dom/test-utils cleanup remove remaining imports
- StrictMode call counts measure actual, don't guess
- Async act wrapping for remaining "not wrapped in act" warnings
- Custom render helper verify once per codebase, not per test
1. act() Import Fix
// Before REMOVED in React 19:
import { act } from 'react-dom/test-utils';
// After:
import { act } from 'react';
If mixed with other test-utils imports:
// Before:
import { act, Simulate, renderIntoDocument } from 'react-dom/test-utils';
// After split the imports:
import { act } from 'react';
import { fireEvent, render } from '@testing-library/react'; // replaces Simulate + renderIntoDocument
2. Simulate → fireEvent
Details
- Repository
- github.com/github/awesome-copilot
- Categories
- Testing & QA, Frontend & UI Code
- First seen
- May 16, 2026
More from github/awesome-copilot
All 293- Lsp Setup1.2K
- Mcp Security Audit1.2K
- Agent Supply Chain1.1K
- Arize Evaluator1.1K
- React19 Concurrent Patterns1.1K
- Arize Instrumentation1.1K
- Integrate Context Matic1.1K
- Onboard Context Matic1K
- React19 Source Patterns995
- Python Pypi Package Builder952
- React Audit Grep Patterns886
- Salesforce Apex Quality886
- Salesforce Flow Design839
- Github Release802
- Flowstudio Power Automate Monitoring788
- Flowstudio Power Automate Governance780
- Salesforce Component Standards770
- React18 Dep Compatibility767
- React18 Batching Patterns757
- React18 Legacy Context749
- Code Tour748
- From The Other Side Vega746
- React18 Lifecycle Patterns746
- React18 String Refs744
Similar to React19 Test Patterns
More Testing & QA
react18-enzyme-to-rtlgithub/awesome-copilot743 installsMigrates Enzyme tests to React Testing Library with behavior-focused rewrites for React 18 upgrades.
react19-source-patternsgithub/awesome-copilot995 installsMigration reference covering React 19 source-file changes, from ReactDOM API updates to ref and context rewrites.
jest-react-testingmanutej/luxor-claude-marketplace1.2K installsComprehensive Jest and React Testing Library guidance for configuration, mocking, async, and hook tests.
migrate-to-rstestrstackjs/agent-skills433 installsStep-by-step migration workflow that moves Jest, Vitest, or Playwright Test suites to Rstest with parity checks.
testing-patternssickn33/agentic-awesome-skills908 installsJest testing patterns with factory functions, mocking strategies, and a TDD red-green-refactor workflow.