Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 424 Bytes

isVueInstance.md

File metadata and controls

21 lines (15 loc) · 424 Bytes

isVueInstance

::: warning isVueInstance is deprecated and will be removed in future releases. :::

Assert every Wrapper in WrapperArray is Vue instance.

  • Returns: {boolean}

  • Example:

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

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