Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 370 Bytes

is.md

File metadata and controls

18 lines (12 loc) · 370 Bytes

is(selector)

Wrapper DOM ノード、または vmセレクタと一致しているか検証します。

  • 引数:

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

  • 例:

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

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