You can use wrapper.debug() to get a string representing the wrapper element, like in:
import {shallow} from "enzyme";
const wrapper = shallow(<SampleComponent/>);
console.log(wrapper.debug());
You can use wrapper.debug() to get a string representing the wrapper element, like in:
import {shallow} from "enzyme";
const wrapper = shallow(<SampleComponent/>);
console.log(wrapper.debug());