Skip to content

Bug when stubbing async components #1026

Closed
@ymhr

Description

@ymhr

Version

1.0.0-beta.25

Reproduction link

https://github.com/ymhr/vue-test-utils-stub-async-component-bug

Steps to reproduce

Test a component which imports an async component, and try and stub the async component.

What is expected?

It should render the component with your stub in place of the async component.

What is actually happening?

It errors with TypeError: Cannot read property 'attrs' of undefined


This may be related to #1012, but that does seem like a different issue.
This does not appear to have been an error in beta.20.

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