testing react with enzyme 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 react
npm i --save-dev enzyme enzyme-adapter-react-16