Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/keplersj/jest-serializer-xml

A snapshot serializer for XML strings.
https://github.com/keplersj/jest-serializer-xml

jest snapshot-testing xml

Last synced: 26 days ago
JSON representation

A snapshot serializer for XML strings.

Awesome Lists containing this project

README

        

# jest-serializer-xml

Serializer for Jest to better visualize XML Documents in Snapshots.

## Installation

```shell
npm install --save-dev jest-serializer-xml
```

## Usage

Configure Jest to use the serializer in `jest.config.js`:

```js
module.exports = {
snapshotSerializers: ["jest-serializer-xml"],
};
```

or `package.json`:

```json
{
"jest": {
"snapshotSerializers": ["jest-serializer-react-helmet"]
}
}
```