You’re browsing the documentation for Vue Test Utils for Vue v2.x and earlier.

To read docs for Vue Test Utils for Vue 3, click here.


Returns a WrapperArray of all matching Vue components.

  • Arguments:

  • Returns: {WrapperArray}

  • Example:

import { mount } from '@vue/test-utils'
import Foo from './Foo.vue'
import Bar from './Bar.vue'

const wrapper = mount(Foo)
const bar = wrapper.findAllComponents(Bar).at(0)
const bars = wrapper.findAllComponents(Bar)

Usage with CSS selectors

Using findAllComponents with CSS selector is subject to same limitations as findComponent