# jest-serializer-vue

> A jest serializer for Vue snapshots

Latest version **3.1.0** (published 2022-11-18) · MIT license · 0 weekly downloads

## Install

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

## 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 | 3.1.0 |
| Published | 2022-11-18 |
| First published | 2017-09-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 13.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 63 |
| Author | Edd Yerburgh |
| Maintainers | eddyerburgh |
| Keywords | jest |

## Links

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

## Dependencies (1)

- [pretty](https://npm.io/package/pretty.md) 2.0.0

## Recent versions

- 3.1.0 (latest) — 2022-11-18
- 3.0.0 — 2022-11-18
- 2.0.2 — 2018-06-05
- 2.0.1 — 2018-06-04
- 2.0.0 — 2018-05-29
- 1.0.0 — 2018-03-08
- 0.3.0 — 2017-11-07
- 0.2.0 — 2017-09-19
- 0.1.0 — 2017-09-08

## README

# jest-serializer-vue

Jest Vue snapshot serializer

## Installation

```
npm install --save-dev jest-serializer-vue
```

## Usage

You need to tell Jest to use the serializer. Add this to your Jest config:

```
"snapshotSerializers": [
  "<rootDir>/node_modules/jest-serializer-vue"
]
```

And your snapshot tests will be pretty printed 💅

```js
import { shallowMount } from '@vue/test-utils'
import Basic from './Basic.vue'

describe('Basic.vue', () => {
  it('renders correctly', () => {
    const wrapper = shallowMount(Basic)
    expect(wrapper).toMatchSnapshot()
  })
})
```

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