Skip to content

Feature parity with jest-serializer-vue-tjw #31

@TheJaredWilcurt

Description

@TheJaredWilcurt

Since forking jest-serializer-vue I've essentially rewrote the entire repo. This includes changing things like the CI, and code style, with very different linting settings. I've also restructured the files. Making a direct PR against this repo would likely be undesired by the maintainer. However, unless the Vue core team wants to adopt my version, the majority of people using Vue will automatically inherit this version. I'd like to see this version improved to include the same features I've already implemented in my fork.

Feature Parity Tracker:

  • Settings API so users can tweak any setting
  • Remove data-server-rendered
  • Remove data-test Automatically remove data-test attributes from snapshots #16
  • Remove data-test-id
  • Remove data-testid
  • Remove data-qa (disabled by default)
  • Remove data-v ID's
  • Remove all HTML comments (disabled by default)
  • Remove CSS classes that start with test (disabled by default)
  • Remove HTML ID attributes that begin with test (disabled by default)
  • Expose "JSBeautify" settings, change defaults to look better Change (or expose) "pretty" options #13
  • Show JSON data in HTML attributes instead of [object Object] render objects #17
  • Only remove HTML attributes from an element's attribute list, not from the innerText content
  • Handle Istanbul comments in Inline functions Istanbul coverage interference #37
  • Clear out or replace inline functions in attributes

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions