React18 enzyme to rtl vs React19 source patterns
React18 enzyme to rtl is an open-source agent skill for developer tools. React19 source patterns is an open-source agent skill for developer tools.
- React18 enzyme to rtl is best for migrate an enzyme test suite to react testing library after upgrading to react 18.
- React19 source patterns is best for migrate a legacy reactdom.render entry point to createroot.
- What it is
- React18 enzyme to rtl is an open-source agent skill for developer tools.React19 source patterns is an open-source agent skill for developer tools.
- Best for
- Migrate an Enzyme test suite to React Testing Library after upgrading to React 18Migrate a legacy ReactDOM.render entry point to createRoot
- Kind
- SkillSkill
- Pricing
- Open sourceOpen source
- Platforms
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, GooseClaude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- GitHub stars
- 41.3K41.3K
- Last commit
- Nov 2026Nov 2026
- License
- MITMIT
- Open source
- Good for
- Migrate an Enzyme test suite to React Testing Library after upgrading to React 18; Rewrite a test that calls wrapper.state() so it checks visible text instead; Convert shallow-rendered component tests into RTL render and query callsMigrate a legacy ReactDOM.render entry point to createRoot; Replace string refs with createRef across a component codebase; Convert defaultProps to default parameters in function components
What React18 enzyme to rtl does
Enzyme to RTL API map
Before-and-after mappings for shallow, mount, find, simulate, prop, state and instance calls.
Behavior-first testing guidance
Explains how to rewrite tests that inspect internal state into assertions on visible output.
Query priority order
Recommends which RTL queries to prefer, starting with accessible roles and ending with test IDs.
Async testing patterns
Covers waitFor, findBy, act() and loading and error states, including Apollo MockedProvider.
Provider wrapping examples
Shows how to render components inside context providers such as themes and mocked clients.
What React19 source patterns does
Deprecated API replacements
Maps removed React APIs such as ReactDOM.render and findDOMNode to their React 19 equivalents.
Ref handling updates
Covers moving from forwardRef wrappers and string refs to ref props and createRef.
Context migration
Explains replacing legacy context with createContext, including cross-file provider and consumer changes.
defaultProps conversion
Describes replacing component defaultProps with ES6 default parameters and their edge cases.
PropTypes handling
Keeps propTypes assignments and adds a comment noting they are no longer checked at runtime.
Unused React import cleanup
Removes unused React default imports only when the file has no React. references.
React18 enzyme to rtl vs React19 source patterns: questions
Is React18 enzyme to rtl or React19 source patterns cheaper?
Both are open source. Compare current plans on each official site.
What is the difference between React18 enzyme to rtl and React19 source patterns?
React18 enzyme to rtl is an open-source agent skill for developer tools. React19 source patterns is an open-source agent skill for developer tools.
