Skip to content

Functional components with multiple element roots don't mount #1092

Open
@fsblemos

Description

@fsblemos

Version

1.0.0-beta.28

Reproduction link

https://codesandbox.io/s/zkxn8pxpm3?expanddevtools=1&module=%2Fsrc%2Fcomponents%2FHelloWorld.test.js

Steps to reproduce

Create a function component with 2 root elements and try to mount it.

What is expected?

Since functional components can have multiple root elements and works in the browser, mount and shallowMount methods should render it normally too.

What is actually happening?

The component is not mounting and console throws an error (which is not thrown in the browser).

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