Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 300 Bytes

isVueInstance.md

File metadata and controls

16 lines (11 loc) · 300 Bytes

isVueInstance()

Wrapper が Vue インスタンスか検証します。

  • 戻り値: {boolean}

  • 例:

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

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