[core] Remove enzyme #42454
Labels
core
Infrastructure work going on behind the scenes
React 19 support
PRs required to support React 19
test
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)The text was updated successfully, but these errors were encountered: