Skip to content

Invalid html when mounting a certain html structure #1070

Closed
@adi-zz

Description

@adi-zz

Version

1.0.0-beta.27

Reproduction link

https://codesandbox.io/s/0pvmr5wj9p

Steps to reproduce

  • Open https://codesandbox.io/s/0pvmr5wj9p
  • After the "browser" inside codesandbox.io loads, notice there's no error in codesandbox's Console tab.
  • Click on codesandbox's Tests tab. The one test I wrote will run.
  • See Console.

What is expected?

  • wrapper.html() shoud return a string containing <div class="component-1">Component 1</div> - the content of Component.vue

What is actually happening?

  • a warning Unknown custom element: <Component1> - did you register the component correctly? For recursive components, make sure to provide the "name" option.. Not sure why this appears when test runs.
  • wrapper.html() returns a string containing <component1></component1>

If you remote the <v-container> from Parent.vue, test runs as expected.

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