Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 285 Bytes

isVueInstance.md

File metadata and controls

16 lines (11 loc) · 285 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)