Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 438 Bytes

File metadata and controls

19 lines (13 loc) · 438 Bytes

is(selector)

WrapperArray の全ての Wrapper のDOMノード、もしくはセレクタvm とマッチするか検証します。

  • 引数:

    • {string|Component} selector
  • 戻り値: {boolean}

  • 例:

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

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