Skip to content

Patch render does not stub dynamic components #1045

Closed
@aguingand

Description

@aguingand

Version

1.0.0-beta.26

Reproduction link

https://codesandbox.io/s/7w7voqkzkj?module=%2Ftest%2Fshallow-mount.spec.js&previewwindow=tests

Steps to reproduce

Open the reproduction link, see the test failing

What is expected?

Every components to be stubbed

<div>
    <childcomponent-stub text="normal"></childcomponent-stub>
    <childcomponent-stub text="data"></childcomponent-stub>
    <childcomponent-stub text="computed"></childcomponent-stub>
    <childcomponent-stub text="method"></childcomponent-stub>
</div>

What is actually happening?

Only the normal component is stubbed

<div>
  <childcomponent-stub text="normal"></childcomponent-stub> 
  <div text="data"></div>
  <div text="computed"></div>
  <div text="method"></div>
</div>

The unit test code come from the last release (#1038)

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