Skip to content

v2.6.0 - Stubs

Latest
Compare
Choose a tag to compare
@TheJaredWilcurt TheJaredWilcurt released this 17 Feb 16:28
· 1 commit to main since this release
52fc797

Features:

  • New "stubs" feature lets you target any element via CSS selectors and remove their innerHTML, attributes, and rename the tag.
  • Example:
global.vueSnapshots.stubs = ['.example'];
<div class="example" title="parent">
  <span title="child">child</span>
</div>
<!-- becomes -->
<example-stub />

Maintenance:

  • Updated types.js
  • Updated dependencies
  • Updated Node

Diff: