Jest snapshot serializer that beautifies hyperHTML snapshots.
npm install hyperhtml-serializer[![CI][gha-image]][gha-url]
[![NPM version][npm-image]][npm-url]
[![Conventional Commits][conventional-commits-image]][conventional-commits-url]
> Jest snapshot serializer that beautifies hyperHTML snapshots.
This version is working with hyperhtml version >=2.19
For hyperhtml@2.4 - 2.18 versions consult the 1.x branch
This serializer it made to remove :
- hyperHTML _hyper comments like
Before :
``js`
Hello hyperHTML !
Hello world !
After :
`js
Hello hyperHTML !
`
`sh`
$ npm install --save-dev hyperhtml-serializeror
$ yarn add -D hyperhtml-serializer
Add in your package.json.
`json``
{
"jest": {
"snapshotSerializers": ["hyperhtml-serializer"]
}
}
Copyright © 2018 Douglas Duteil
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See the LICENCE file for more details.
[npm-url]: https://npmjs.org/package/hyperhtml-serializer
[npm-image]: http://img.shields.io/npm/v/hyperhtml-serializer.svg
[gha-url]: https://github.com/douglasduteil/hyperhtml-serializer/actions/workflows/ci.yml
[gha-image]: https://github.com/douglasduteil/hyperhtml-serializer/actions/workflows/ci.yml/badge.svg
[conventional-commits-image]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg
[conventional-commits-url]: https://conventionalcommits.org*