Skip to content

Vue Component cannot be passed to mount #635

@No9

Description

@No9

The app is broken as it won't get versions at the min so I am submitting direct.

Version

1.0.0-beta.16
node v8.10.0

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions