riku
2024-06-14 3398aca0f3b5ac513a5fc34146ac9d382dce723b
1
2
3
4
5
6
7
8
9
10
11
import { describe, it, expect } from 'vitest'
 
import { mount } from '@vue/test-utils'
import HelloWorld from '../HelloWorld.vue'
 
describe('HelloWorld', () => {
  it('renders properly', () => {
    const wrapper = mount(HelloWorld, { props: { msg: 'Hello Vitest' } })
    expect(wrapper.text()).toContain('Hello Vitest')
  })
})