XuelesszzZ 94af2b8e7b 6-30-5 1 rok temu
..
.circleci 94af2b8e7b 6-30-5 1 rok temu
test 94af2b8e7b 6-30-5 1 rok temu
.babelrc 94af2b8e7b 6-30-5 1 rok temu
.eslintrc 94af2b8e7b 6-30-5 1 rok temu
CHANGELOG.md 94af2b8e7b 6-30-5 1 rok temu
LICENSE 94af2b8e7b 6-30-5 1 rok temu
README.md 94af2b8e7b 6-30-5 1 rok temu
index.js 94af2b8e7b 6-30-5 1 rok temu
jest.config.json 94af2b8e7b 6-30-5 1 rok temu
package.json 94af2b8e7b 6-30-5 1 rok temu

README.md

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 💅

import { shallow } from 'avoriaz'
import Basic from './Basic.vue'
import { createRenderer } from 'vue-server-renderer'

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