Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.56 KB

README.md

File metadata and controls

49 lines (35 loc) · 1.56 KB

Wrapper

Vue Test Utils is a wrapper based API.

A Wrapper is an object that contains a mounted component or vnode and methods to test the component or vnode.

Properties

vm

Component: This is the Vue instance. You can access all the instance methods and properties of a vm with wrapper.vm. This only exists on Vue component wrappers

element

HTMLElement: the root DOM node of the wrapper

options

options.attachedToDocument

Boolean: True if attachedToDocument in mounting options was true 

options.sync

Boolean: True if sync in mounting options was not false

Methods

!!!include(docs/api/wrapper/attributes.md)!!! !!!include(docs/api/wrapper/classes.md)!!! !!!include(docs/api/wrapper/contains.md)!!! !!!include(docs/api/wrapper/destroy.md)!!! !!!include(docs/api/wrapper/emitted.md)!!! !!!include(docs/api/wrapper/emittedByOrder.md)!!! !!!include(docs/api/wrapper/exists.md)!!! !!!include(docs/api/wrapper/find.md)!!! !!!include(docs/api/wrapper/findAll.md)!!! !!!include(docs/api/wrapper/html.md)!!! !!!include(docs/api/wrapper/is.md)!!! !!!include(docs/api/wrapper/isEmpty.md)!!! !!!include(docs/api/wrapper/isVisible.md)!!! !!!include(docs/api/wrapper/isVueInstance.md)!!! !!!include(docs/api/wrapper/name.md)!!! !!!include(docs/api/wrapper/props.md)!!! !!!include(docs/api/wrapper/setData.md)!!! !!!include(docs/api/wrapper/setMethods.md)!!! !!!include(docs/api/wrapper/setProps.md)!!! !!!include(docs/api/wrapper/text.md)!!! !!!include(docs/api/wrapper/trigger.md)!!!