Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 254 Bytes

isVueInstance.md

File metadata and controls

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