enzymejs / enzyme

JavaScript Testing utilities for React
https://enzymejs.github.io/enzyme/
MIT License
19.96k stars 2.01k forks source link

Does Enzyme support React 18.0.2 ? #2577

Closed alamenai closed 1 year ago

alamenai commented 1 year ago

Steps to reproduce:

Run: npm i --save-dev enzyme enzyme-adapter-react-18

Expected behavior

installed package.

Current behavior

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/enzyme-adapter-react-18 - Not found
npm ERR! 404 
npm ERR! 404  'enzyme-adapter-react-18@*' is not in this registry.
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/alaeddine/.npm/_logs/2023-02-05T09_04_05_545Z-debug-0.log
ljharb commented 1 year ago

No, which is documented in the peerDependencies field. It currently requires React 0.13 - 16.