Edited on Monday 17 November 2025 at 15:09
Utilisez @vue/test-utils et Jest.
Example:
import { mount } from '@vue/test-utils'
import MyComp from './MyComp.vue'
test('renders props', () => {
const wrapper = mount(MyComp)
expect(wrapper.text()).toContain('Hello')
})2025-11-17 16:22:57
bh