How to print the contents of enzyme's shallow wrapper
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());
import {shallow} from "enzyme";
const wrapper = shallow(<SampleComponent/>);
console.log(wrapper.html());