jest-serializer-xml
v0.1.34
Published
A snapshot serializer for XML strings.
Downloads
1,114
Readme
jest-serializer-xml
Serializer for Jest to better visualize XML Documents in Snapshots.
Installation
npm install --save-dev jest-serializer-xml
Usage
Configure Jest to use the serializer in jest.config.js
:
module.exports = {
snapshotSerializers: ["jest-serializer-xml"],
};
or package.json
:
{
"jest": {
"snapshotSerializers": ["jest-serializer-react-helmet"]
}
}