Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 271 Bytes

isVueInstance.md

File metadata and controls

15 lines (10 loc) · 271 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)