Stubs child components. Can be an Array of component names to stub, or an object. If stubs is an Array, every stub is <${component name}-stub>.

Example:

import Foo from'./Foo.vue'mount(Component,{
stubs:['registered-component']})shallowMount(Component,{
stubs:{// stub with a specific implementation'registered-component': Foo,// create default stub.// the component name of default stub is another-component in this case.// the default stub is <${the component name of default stub}-stub>.'another-component':true}})