Features:
global.vueSnapshots.debug = true
will now log markup strings during cheerio transforms.- I also made a change to how the
types.js
file is structured. ChatGPT said it would work withtsc
and tsengine. But it lies pretty often, and dealing with TS being dumb is above my paygrade. Lemme know if it broke something, it's an easy fix if it did, but hopefully not. global.vueSnapshots.attributesNotToStringify
was changed from having a default of['style']
to['class', 'style']
. You may see snapshot changes similar to this:
- class="{ active: true, disabled: false }"
+ class="active"
- This change was made due to a complex interaction between parent and child VNodes regarding class. Rather than make the already complicated code around this far more complex for this edge case, I just changed the defaults of the setting to avoid the issue.
- I don't really see any benefit in having the object structure for classes shown in the snapshots, but if you do, feel free to make a PR fixing the underlying issues shown in #136.
- If you are not impacted by this edge case and want to avoid these snapshot changes use this setting:
global.vueSnapshots.attributesNotToStringify = ['style']
Maintenance:
- Updated Node/npm to latest versions.
Diff: