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.

is

Affirmer que chaque Wrapper dans le noeud DOM WrapperArray ou vm correspond à selector.

  • Arguments:

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

  • Exemple:

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)