Skip to content

Vue Component cannot be passed to mount #636

Closed
@No9

Description

@No9

Version

1.0.0-beta.16

Reproduction link

https://github.com/No9/vue-test-utils-issue

Steps to reproduce

See repo

> git clone https://github.com/No9/vue-test-utils-issue.git
> cd vue-test-utils-issue
> npm install
> npm test

What is expected?

Passing a Vue Component to vue-test-utils.mount should work as per
#329 (comment)

What is actually happening?

An error is thrown that wrapper.html() is undefined


I may have misunderstood the use of the wrapper and the library here and unpacking the vue as per the first passing test is expected behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions