Skip to content

Files

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Latest commit

cda9f8c · May 14, 2020

History

History
23 lines (15 loc) · 569 Bytes

isVueInstance.md

File metadata and controls

23 lines (15 loc) · 569 Bytes

isVueInstance

::: warning Deprecation warning isVueInstance is deprecated and will be removed in future releases.

Most of the times, tests relying on isVueInstance provide little to no-value so you could simply remove them.

If you want to keep these tests, a valid replacement is to assert that wrapper.find(...).vm exists. :::

Assert Wrapper is Vue instance.

  • Returns: {boolean}

  • Example:

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

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