import Vue from 'vue' import Login from '@/views/Login' describe('Login.vue', () => { it('should render correct contents', () => { const Constructor = Vue.extend(Login) const vm = new Constructor().$mount() expect(vm.$el.querySelector('.hello h1').textContent) .toEqual('Welcome to Your Vue.js App') }) })