Enzyme full dom mounting:
.find(selector) => ReactWrapper returns a wrapper, not a boolean
it('renders H1', () => {
const wrapper = mount(<Typography variant="h1" />);
const elem = wrapper;
console.log(elem.debug());
expect(elem.find('h1')).to.have.length(1);
});
.contains(nodeOrNodes) => boolean - Here's a link to the common gotchas, notably that it expects a react element, not a html element or CSS selector