# mithril-serializer

> Mithril serializer plugin for pretty-format

Latest version **0.1.0** (published 2018-10-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install mithril-serializer
pnpm add mithril-serializer
yarn add mithril-serializer
bun add mithril-serializer
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-10-10 |
| First published | 2018-10-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Diogo Doreto |
| Maintainers | diogodoreto |
| Keywords | jest, jest snapshots, pretty-format |

## Links

- npm: https://www.npmjs.com/package/mithril-serializer
- npm.io page: https://npm.io/package/mithril-serializer

## Dependencies (1)

- [pretty-format](https://npm.io/package/pretty-format.md) ^23.6.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2018-10-10

## README

# mithril-serializer

[![Build Status](https://travis-ci.com/DiogoDoreto/mithril-serializer.svg?branch=master)](https://travis-ci.com/DiogoDoreto/mithril-serializer)

Mithril serializer plugin for pretty-format

## Examples

```js
test('node with content', () => {
  const vnode = m('div', 'Hello');

  expect(vnode).toMatchInlineSnapshot(`
<div>
  Hello
</div>
`);
});
```

Check our own [test cases](./mithril-serializer.test.js) for more examples.

## How to use

Add this plugin to your devDependencies with:

    npm install --save-dev mithril-serializer

Add the following config to your `jest.config.js` file:

    snapshotSerializers: ['mithril-serializer']

Now Jest is able to pretty print Mithril's vnodes in your snapshots.

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