Skip to content
A snapshot serializer for XML strings.
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.dependabot
.github/workflows
__tests__
.gitignore
LICENSE
README.md
index.js
package-lock.json
package.json

README.md

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"]
  }
}
You can’t perform that action at this time.