Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove enzyme tests #3848

Merged
merged 7 commits into from
Jan 29, 2025
Merged

Conversation

Saadnajmi
Copy link
Collaborator

@Saadnajmi Saadnajmi commented Jan 29, 2025

Platforms Impacted

  • iOS
  • macOS
  • win32 (Office)
  • windows
  • android

Description of changes

Enzyme has been deprecated / not compatible with the latest React versions, but we still have many tests running using it. As far as I can tell, there is no replacement for the types of tests we're running (checkRenderConsistency and checkReRender), since the replacement (react-native-testing-library) is more of an integration test library. Let's remove the enzyme tests altogether, and port the ones that are simply snapshot tests to use react-test-renderer.

Note, react-test-renderer (used for all our snapshot tests) is also deprecated, but it looks like react-native-testing-library v14 will have a replacement. So I'll hold off migrating those snapshot tests till we need to.

Verification

CI should pass

Pull request checklist

This PR has considered (when applicable):

  • Automated Tests
  • Documentation and examples
  • Keyboard Accessibility
  • Voiceover
  • Internationalization and Right-to-left Layouts

@Saadnajmi Saadnajmi marked this pull request as ready for review January 29, 2025 21:31
@Saadnajmi Saadnajmi requested a review from a team as a code owner January 29, 2025 21:31
@Saadnajmi Saadnajmi enabled auto-merge (squash) January 29, 2025 22:45
@Saadnajmi Saadnajmi merged commit 5ca24ac into microsoft:main Jan 29, 2025
11 checks passed
@Saadnajmi Saadnajmi deleted the remove-enzyme branch January 29, 2025 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants