@arbetsmyra/jest-serializer-pugdeprecated

Pug Jest snapshot serializer

Usage no npm install needed!

<script type="module">
  import arbetsmyraJestSerializerPug from 'https://cdn.skypack.dev/@arbetsmyra/jest-serializer-pug';
</script>

README

jest-serializer-pug

Pug Jest snapshot serializer

latest git version latest npm version license Actions

Installation

Requirements

  • node >= v10
  • npm >= v5
  • jest >= v22.x
npm install --save-dev @arbetsmyra/jest-serializer-pug

Usage

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.

License

MIT © Arbetsmyra