test: migrate Enzyme tests to React Testing Library#1850
Closed
felixrieseberg wants to merge 1 commit intofelixr/react-18-corefrom
Closed
test: migrate Enzyme tests to React Testing Library#1850felixrieseberg wants to merge 1 commit intofelixr/react-18-corefrom
felixrieseberg wants to merge 1 commit intofelixr/react-18-corefrom
Conversation
Add RTL replacements for all 21 Enzyme test files that were removed in the React 18 upgrade. Tests use render/screen/userEvent from @testing-library/react instead of shallow/mount from Enzyme. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Member
Author
|
Splitting differently — RTL migration first, React 18 upgrade later. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RTL replacements for all 21 Enzyme test files removed in #1849. This is a pure test-only PR — no source code changes.
Changes
All 21 test files rewritten from Enzyme (
shallow/mount) to React Testing Library (render/screen/userEvent):Verification
tsc --noEmit: 0 errorsvitest run: 91 files, 806 passed (full coverage restored)