-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[Epic]: Migrate from enzyme to testing-library #21663
Comments
Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
Doing deprecation of Enzyme in my project, I figured out there is a way to make this process more manageable and automated: https://thesametech.com/migrate-away-from-enzyme/ |
Because this issue has not had activity for over 180 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
Because this issue has not had activity for over 180 days, we're automatically closing it for house-keeping purposes. Still require assistance? Please, create a new issue with up-to date details. |
Part of CDA - internal deadline for this is May 30th 2023.
if your package currently uses Enzyme based test, we recommend that your/team perform the following actions.
We don't have resources to make it till that time, but we should be able to target end of Q1/2 2024.
Background
We'd like to migrate from enzyme to testing-library since enzyme is effectively unmaintained (over a year and no official React 17 adapter) and testing-library provides a better, more reliable testing experience that more closely resembles user interaction.
This has become a higher priority because we'd like to upgrade our repo to React 17 (#20145) but it's being blocked by the lack of an Enzyme adapter.EDIT: Between testing-library and cypress migrations, and possibly fixes to the unofficial adapter, the unofficial adapter now works with our remaining tests. So this is no longer a blocker for in-repo React 17 adoption. It will block React 18 adoption in-repo, but we probably won't be there for a few months at least.testing-library has an excellent guide to migrating from enzyme -- it's a bit different way of thinking rather than a 1-1 mapping that could be automated, but overall a much better approach.
Steps
@fluentui/a11y-testing
- Convert a11y-testing package to testing-library #22262or danger checkRelated issues
The text was updated successfully, but these errors were encountered: