Skip to content

Using a <component> tag does not stub the component when using shallowMount #995

Closed
@BenShelton

Description

@BenShelton

Version

1.0.0-beta.25

Reproduction link

https://codesandbox.io/s/wq7zw0k288

Steps to reproduce

Open project and run test

What is expected?

No text should appear because all the components are stubbed

What is actually happening?

The 'normal' component is stubbed, but all others are not not


I'm using <component :is="aComponent" /> to dynamically choose question components on forms based on other data. However because shallow mounting is not stubbing them the entire form is being created when I just want to test the wrapper.

This may be a similar problem to #959

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