mount — full rendering. shallowMount — stubbed children.
mount:
1import { mount } from "@vue/test-utils"2import Parent from "./Parent.vue"34// Renders all child components5const wrapper = mount(Parent)6// Child components are fully rendered
shallowMount:
1import { shallowMount } from "@vue/test-utils"2import Parent from "./Parent.vue"34// Stubs child components5const wrapper = shallowMount(Parent)6// Child components are stubbed
When to use: