Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 312 Bytes

isVueInstance.md

File metadata and controls

15 lines (10 loc) · 312 Bytes

isVueInstance()

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

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

  • Пример:

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

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