Nuxt/examples/jest-vtu-example/pages/index.spec.js

15 lines
359 B
JavaScript
Raw Normal View History

import { shallowMount } from '@vue/test-utils'
import index from './index'
describe('index', () => {
test('mounts properly', () => {
const wrapper = shallowMount(index)
expect(wrapper.isVueInstance()).toBeTruthy()
})
test('renders properly', () => {
const wrapper = shallowMount(index)
expect(wrapper.html()).toMatchSnapshot()
})
})