-
Notifications
You must be signed in to change notification settings - Fork 172
Migrate out of Enzyme testing library to facilitate react 18 upgrade #2524
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
Conversation
7ddcc91
to
9db5769
Compare
Pull Request Test Coverage Report for Build 5333112029
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all this refactoring work, much appreciated! I only have a few minor nits below, otherwise LGTM 😄
…ource-academy#2524) * Add testing-library/react packages * Downgrade react-test-renderer to match current react version * Deprecate enzyme usage * Downgrade @test-library/react to match react version * Continue deprecation of enzyme usage * Migrate Assessment.tsx tests * Migrate dialogs and dropdown tests * Migrate navigation bar tests * Migrate NotificationBadge tests * Migrate profile card tests * Migrate Repl, RessearchAgreementPrompt and SideContentAutograder tests * Migrate remaining side content component tests * Migrate Sicp component tests * Migrate AssessmentWorkspace component tests * Update remaining snapshots after changes * Shift extend-expect import to setup file * Remove enzyme related packages * Fix PR comments
…ource-academy#2524) * Add testing-library/react packages * Downgrade react-test-renderer to match current react version * Deprecate enzyme usage * Downgrade @test-library/react to match react version * Continue deprecation of enzyme usage * Migrate Assessment.tsx tests * Migrate dialogs and dropdown tests * Migrate navigation bar tests * Migrate NotificationBadge tests * Migrate profile card tests * Migrate Repl, RessearchAgreementPrompt and SideContentAutograder tests * Migrate remaining side content component tests * Migrate Sicp component tests * Migrate AssessmentWorkspace component tests * Update remaining snapshots after changes * Shift extend-expect import to setup file * Remove enzyme related packages * Fix PR comments
Pull Request Test Coverage Report for Build 5332350829Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Description
See #2520
Moving forward, we should probably document down the best practices while onboarding new developers, and point them to the relevant documentation to get started (e.g. React 18, @ testing-library/react, etc.) --> added in #2527
Type of change
How to test
Check through the snapshots. I've tried adding some assertions to the snapshot tests too to improve the robustness of the test suite.
Checklist