github/awesome-copilot/react19-test-patterns
Claude Code and agent skill by github/awesome-copilot
- community
Checking that the SKILL.md file is still in the repository.
Provides before/after patterns for migrating test files to React 19 compatibility, including act() imports, Simulate removal, and StrictMode call count changes.
Install
npx vskill@latest install github/awesome-copilot/react19-test-patternsSKILL.md
The same SKILL.md was published earlier as github/awesome-copilot/react19-test-patterns.
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:
- `act` import fix first, it unblocks everything else
- `Simulate` → `fireEvent` fix 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
If mixed with other test-utils imports:
2. Simulate → fireEvent
3. react-dom/test-utils Full API Map
| Old (react-dom/test-utils) | New location | |
|---|---|---|
act | import { act } from 'react' | |
Simulate | fireEvent from @testing-library/react | |
renderIntoDocument | render from @testing-library/react | |
findRenderedDOMComponentWithTag | getByRole, getByTestId from RTL | |
findRenderedDOMComponentWithClass | getByRole or container.querySelector | |
scryRenderedDOMComponentsWithTag | getAllByRole from RTL | |
isElement, isCompositeComponent | Remove not needed with RTL | |
isDOMComponent | Remove |
4. StrictMode Call Count Fixes
React 19 StrictMode no longer double-invokes useEffect in development. Spy assertions counting effect calls must be updated.
Strategy always measure, never guess:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/react19-test-patterns/SKILL.md
Popularity
- Repository stars
- 31,607
- Repository forks
- 3,828
- 7-day trend score
- 52
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 27 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/github/awesome-copilot/react19-test-patterns)