describe('Hello.vue', () => { it('should render correct contents', () => { const vm = new Vue({ template: '<div><hello></hello></div>', components: { Hello } }).$mount() expect(vm.$el.querySelector('.hello h1').textContent).toBe('Hello World!') }) })
Caso queira exemplo de test de componente com mocks, verificar exemplo em: https://github.com/vuejs/vue-loader-example/blob/master/test/unit/a.spec.js#L24-L49