// Generated by vuejs gem ~> github.com/ytbryan/vuejs // To generate another component part with test, // please run `rails generate vue something --test` import { shallowMount } from '@vue/test-utils' <% if options['seperate'] -%> import App from '@/<%= name %>/<%= name %>.vue' <% else -%> import App from '@/<%= name %>.vue' <% end -%> describe('<%= name %>.vue', () => { it('render hello <%= name %>', () => { const message = "Hello <%= name %>!" const wrapper = shallowMount(App) expect(wrapper.find('#<%= name %>').text()).toBe(message) }) })