Closed DiegoAndai closed 6 days ago
@aarongarciah please add other tasks if there are any so we can keep this issue updated 😊
All tasks are now completed in next
. Should we keep this open until we backport the changes to master
?
Should we keep this open until we backport the changes to master?
Yes, I added a task for it 😊
Summary
For our tests to be compatible with React 19, we must replace Enzyme. Enzyme has been dead for a while now, and we had an adapter to work with React 18. Instead of creating a new adapter, we've decided it's time to migrate.
Migration
The tests will be migrated to React Testing Library (RTL), which we already use. The steps we'll need to take on our tests are:
createMount
usageRTL has different guiding principles from Enzyme. In a nutshell, it discourages testing implementation details. In this migration, we'll embrace this principle as it's to be the industry standard. This means some tests will require adapting, striving to test the same functionality but following this new guiding principle.
Tasks
describeConformance
: #42447createMount
): #42703master
(v5)