React Testing Library vs Enzyme

Enzyme

React Testing Library

Differences in concepts, rendering and operations

npm i --save-dev enzyme enzyme-adapter-react-16
import Enzyme from 'enzyme';import Adapter from 'enzyme-adapter-react-16';Enzyme.configure({ adapter: new Adapter() });
npm install --save-dev @testing-library/react

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Keitaro

Keitaro

55 Followers

Keitaro is a Linux and Open-source software company that develops solutions empowering organizations and enterprises around the world.