Skip to content

Commit

Permalink
Clarify relationship between RTL and React 18 as rationale for removi…
Browse files Browse the repository at this point in the history
…ng enzyme
  • Loading branch information
tyxla committed Sep 27, 2022
1 parent bde4b51 commit f6d12ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-preset-default/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ npm install @wordpress/jest-preset-default --save-dev

#### Using enzyme

Historically, this package used to use `enzyme`, but support was dropped in favor of upgrading to React 18.
Historically, this package used to use `enzyme`, but support was dropped in favor of `@testing-library/react`, primary reason being unblocking the upgrade to React 18.

If you wish to use `enzyme`, you can still use it by manually providing the React 17 adapter, by following the steps below.

Expand Down

0 comments on commit f6d12ec

Please sign in to comment.