import { mount } from '@vue/test-utils'
import HelloWorld from '../components/HelloWorld.vue'
test('mount component', async () => {
expect(HelloWorld).toBeTruthy()
const wrapper = mount(HelloWorld, {
props: {
msg: ''
}
})
expect(wrapper.text()).toContain('0')
expect(wrapper.html()).toMatchSnapshot()
await wrapper.get('button').trigger('click')
expect(wrapper.text()).toContain('1')
await wrapper.get('button').trigger('click')
expect(wrapper.text()).toContain('2')
})