v2.9.0 - attributesNotToStringify
Features:
- By default,
stringifyAttributes
will no longer convert object-basedstyle
attributes to stringified objects, allowing Vue to convert them to actual DOM valid strings.
Expect snapshot changes similar to this:
- style="{ top: 0, height: 0, --v-progress-linear-height: '2px' }"
+ style="top: 0px; height: 0px; --v-progress-linear-height: 2px;"
If you prefer the object look, you can set global.vueSnapshots.attributesNotToStringify = [];
.
If there are other attributes you want skipped in the stringifyAttributes
process, you can add them to the attributesNotToStringify
array.
Diff: