Skip to content

feat: 🎸 add no-html-snapshots rule

Jannik Lehmann requested to merge jnnkl-no-html-snapshots into main

This MR adds the no-html-snapshots rule, to lint against matching of snapshots against the output of html().

It's set to error type problem since we don't want code like this to error out when we encounter it, but leave a warning that this line might be a potential troublemaker.

Closes: #17

Example

// :(
expect(wrapper.html()).toMatchSnapshot()
// :)
expect(wrapper.element).toMatchSnapshot()
Edited by Jannik Lehmann

Merge request reports