enzyme twsting code example
Example 1: enzyme react
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
Enzyme.configure({ adapter: new Adapter() });
Example 2: enzyme testing
npm i --save-dev enzyme enzyme-adapter-react-16