Skip to content

Support wrapping an already mounted Vue instance #337

Closed
@emileber

Description

@emileber

The other day while testing a class that manually mounts a Vue instance to an element in the page, I wanted to use the Wrapper utilities but found out that I can't just call new Wrapper(myVueInstance); as it seems that Wrapper and WrapperArray are not exposed within the public API.

I didn't dive deep into the code, so I might have missed a way to achieve what I want.

A quick look at the source and the documentation shows that only the following is exposed:

export default {
  createLocalVue,
  config,
  mount,
  shallow,
  TransitionStub,
  TransitionGroupStub
}

I found /pull/328 which is close to what I'd want.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions