Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 403 Bytes

isVueInstance.md

File metadata and controls

18 lines (13 loc) · 403 Bytes

isVueInstance()

WrapperArray の全ての Wrapper が Vue インスタンスであるか検証します。

  • 戻り値: {boolean}

  • 例:

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

const wrapper = mount(Foo)
const barArray = wrapper.findAll(Bar)
expect(barArray.isVueInstance()).toBe(true)