tjw-lint / vue3-snapshot-serializer

Vitest/Jest Snapshot Serializer for Vue 3 components
https://TheJaredWilcurt.com/vue-snapshot-serializer
MIT License
3 stars 2 forks source link

Bugfix: Missing Final Returns #59

Open mauryapari opened 2 days ago

mauryapari commented 2 days ago

Moved code into respective functions Added code to check if tag is in same line as child and append closing tag based on it

Related to issue #39

Notes for reviewer:

If no children, then check it’s own start tag endline,

return node.starttag.endline == node.endtag.endline.

Checklist: