jest-serializer-pug
Pug Jest snapshot serializer
Installation
Requirements
node>= v10npm>= v5jest>= v22.x
npm install --save-dev @arbetsmyra/jest-serializer-pugUsage
Once the @arbetsmyra/jest-serializer-pug package is installed, you can use it by specifying the @arbetsmyra/jest-serializer-pug serializer for the snapshotSerializers property in the Jest configuration.
{
"snapshotSerializers": ["@arbetsmyra/jest-serializer-pug"]
}The serializer support values that are of type String or Element. Internally it uses html2pug to convert HTML to Pug template.
Contributing
If you want to contribute and make our project better, your help is very welcome.
Our contribution guide is right now a bit empty but will be improved in the future. If you have any requests or suggestions please create an issue with the necessary information and we will get back to you.