Skip to content
Kepler Sticka-Jones

jest-serializer-xml

Status: active​​Role: creator, maintainer​​GitHub​​npm​​

Jest-serializer-xml is a 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"]
  }
}

License

Copyright 2019-2020 Kepler Sticka-Jones. Licensed MIT.