Skip to content

Allow custom serialisersย #1861

Open
Open
@OmgImAlexis

Description

@OmgImAlexis

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions