Enzyme is an open source testing library developed by Airbnb that can help us to test React components. We can install enzyme using the following command:
npm install --save-dev enzyme enzyme-adapter-react-16 @types/enzyme @types/ enzyme-adapter-react-16