
Description
react19-test-patterns is an agent skill from the github/awesome-copilot collection that gives before-and-after patterns for migrating test files to React 19. React 19 changed several things that break older test suites: the act helper must be imported from the right place, the Simulate test utility was removed in favor of fireEvent, the react-dom test-utils imports need cleaning up, and the number of calls made under StrictMode changed. The skill sets the order of work, and it matters. The act import fix comes first because it unblocks everything else. The Simulate to fireEvent replacement follows immediately after it. Then the remaining react-dom test-utils imports are removed, and StrictMode call counts are measured rather than guessed. Async act wrapping comes next, for the remaining warnings that a state update was not wrapped in act. The custom render helper is verified once per codebase rather than in each test. Each step has a concrete before and after example. The skill is useful for teams upgrading a React application and facing a large set of failing tests. It describes mechanical changes, so the results should be checked by running the suite, because a test that passes after a change may now be asserting less than it did. The skill is installed with the skills CLI from the github/awesome-copilot repository. Its skills.sh page showed about 1.2K installs and passing results from three security audits at the time of the scan.…
Highlights
- Before and after test migration examples
- act import fix first
- Simulate to fireEvent replacement
- StrictMode call count measurement
- Installs with the skills CLI
Ratings & Reviews
No ratings yet
Be the first to rate react19-test-patterns.
People also visit

chakra-ui-migrate
Migrate Chakra UI projects from v2 to v3, covering package changes, codemods

feature-flags
Feature flag tests fail, flags need updating, understanding @gate pragmas

migrate-radix-to-base
Migrates React projects and components from Radix UI to Base UI
react19-test-patterns FAQ
What does the skill migrate?
Test files for React 19, covering act imports, Simulate removal, react-dom test-utils cleanup and StrictMode call counts.
Why is the order important?
Each layer depends on the one before, so the act import fix is done first.
Is a passing test a sign the migration worked?
Not necessarily. A test may pass while asserting less, so review the changed tests.
How do I install it?
Run npx skills add https://github.com/github/awesome-copilot --skill react19-test-patterns.
What security audits does it have?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
What are the best react19-test-patterns alternatives?
Popular alternatives to react19-test-patterns include react-modernization, chakra-ui-migrate and react-testing. See all react19-test-patterns alternatives



