# metal-jest-serializer

> A jest snapshot serializer for use with Metal.js

Latest version **2.0.0** (published 2018-01-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install metal-jest-serializer
pnpm add metal-jest-serializer
yarn add metal-jest-serializer
bun add metal-jest-serializer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2018-01-15 |
| First published | 2017-03-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mike Hadley |
| Maintainers | rframpton, mthadley |
| Keywords | metal, jest, snapshot |

## Links

- npm: https://www.npmjs.com/package/metal-jest-serializer
- Repository: https://github.com/mthadley/metal-jest-serializer
- Homepage: https://github.com/mthadley/metal-jest-serializer#readme
- Issues: https://github.com/mthadley/metal-jest-serializer/issues
- npm.io page: https://npm.io/package/metal-jest-serializer

## Dependencies (2)

- [js-beautify](https://npm.io/package/js-beautify.md) ^1.6.11
- [metal-incremental-dom](https://npm.io/package/metal-incremental-dom.md) ^2.16.0

## Recent versions

- 2.0.0 (latest) — 2018-01-15
- 1.0.1 — 2017-03-06
- 1.0.0 — 2017-03-06

## README

# metal-jest-serializer

[![Build Status](https://travis-ci.org/mthadley/metal-jest-serializer.svg?branch=master)](https://travis-ci.org/mthadley/metal-jest-serializer)

A [Jest](http://facebook.github.io/jest/docs/tutorial-react-native.html#snapshot-test)
snapshot serializer for use with [Metal.js](http://www.metaljs.com/).

## Setup

Just add the following to your Jest configuration in your `package.json`:

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

Now you can start writing snapshot tests!

```js
describe('MyComponent', () => {
  test('should render', () => {
    const myComponent = new MyComponent();

    expect(myComponent).toMatchSnapshot();
  });
});
```

---
_Source: https://npm.io/package/metal-jest-serializer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
