enzyme configure adapter

Solutions on MaxInterview for enzyme configure adapter by the best coders in the world

showing results for - "enzyme configure adapter"
Carolina
18 Sep 2018
1import { configure } from 'enzyme';
2import Adapter from 'enzyme-adapter-react-16';
3//dont forget to install 'enzyme-adapter-react-(your React version)' dependency
4//In this case 'enzyme-adapter-react-16'
5
6configure({ adapter: new Adapter() });