Skip to content

Render component names/ids when shallow #28

Closed
@rowanu

Description

@rowanu

Is it possible/a good idea for shallow() output to included the component names?

Right now shallow(component).html() gives me:

<div data-v-1d62245a="" id="app"><!----> <!----></div>

It would be great if included the name of the component, or similar. For example:

<div data-v-1d62245a="" id="app"><!--Login--> <!--SignUp--></div>

This would me a I could make basic assertions about what components would have been included, based on conditional logic of the component under test.

Let me know if the current behaviour is a deliberate design decision, or if you're interested in a PR.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions