Closed
Description
Documentation Feedback
Provide a brief summary of what you would like to see changed in our documentation.
Naively, for as long as I've been using this library I've been doing snapshot testing via
expect(wrapper).toMatchSnapshot()
however, the documentation without reasons shows
expect(wrapper.element).toMatchSnapshot()
expect(wrapper.html()).toMatchSnapshot()
It's not clear to me what the exact differences between the three are.
Feel free to provide any suggestions of content or examples you’d like us to include.
It would be nice to explain either the pros and cons of the different methods, or to just endorse one and say why explicitly.
Affected documentation page: Insert a link to the affected page
https://vue-test-utils.vuejs.org/guides/#testing-single-file-components-with-jest