Skip to content

Instantly share code, notes, and snippets.

@kuroski
Created September 6, 2018 20:52
Show Gist options
  • Save kuroski/e425fa63482a6a62321ee7100e8aed32 to your computer and use it in GitHub Desktop.
Save kuroski/e425fa63482a6a62321ee7100e8aed32 to your computer and use it in GitHub Desktop.
import { shallowMount } from '@vue/test-utils'
import UserView from '@/views/UserView'
describe('UserView', () => {
it('renders the component', () => {
// arrange
const wrapper = shallowMount(UserView)
// assert
expect(wrapper.html()).toMatchSnapshot()
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment