Skip to content

Files

Latest commit

a956468 · Feb 22, 2021

History

History
19 lines (13 loc) · 410 Bytes

exists.md

File metadata and controls

19 lines (13 loc) · 410 Bytes

exists

Assert WrapperArray exists.

Returns false if called on a WrapperArray with no Wrapper objects, or if any of them do not exist.

  • Returns: {boolean}

  • Example:

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

const wrapper = mount(Foo)
expect(wrapper.findAll('div').exists()).toBe(true)
expect(wrapper.findAll('does-not-exist').exists()).toBe(false)