A jest serializer for Vue snapshots
npm install jest-serializer-vueJest Vue snapshot serializer
```
npm install --save-dev jest-serializer-vue
You need to tell Jest to use the serializer. Add this to your Jest config:
``
"snapshotSerializers": [
"
]
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()
})
})
``