Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 410 Bytes

isVueInstance.md

File metadata and controls

17 lines (12 loc) · 410 Bytes

isVueInstance()

Проверка, что каждый Wrapper в WrapperArray является экземпляром Vue.

  • Возвращает: {boolean}

  • Пример:

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)