Open
Description
Description
Currently if a HTML element is passed to t.snapshot
it copies the code as is to the .md
file.
I was hoping to pass a function to the serialiser so I could pretty print the content before it's saved to the .md
file.
Relevant Links
Example: app-header.spec.js.md
Example: html serialiser for Jest
Itโs designed to do that, but itโs not exposed in AVA. Happy to work out details if you open an issue.
Ref: https://twitter.com/novemberborn/status/1017718535274065920