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.

O método is

Afirma que todo Wrapper dentro do nó do DOM de WrapperArrayou vm corresponde a um seletor.

  • Argumentos:

    • {string|Component} selector
  • Retorna: {boolean}

  • Exemplo:

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

const wrapper = mount(Foo)
const divArray = wrapper.findAll('div')
expect(divArray.is('div')).toBe(true)