Skip to content

react-test-renderer: toTree() does not yet know how to handle nodes with tag=10 #12106

Closed
@ambar

Description

@ambar

Do you want to request a feature or report a bug?

bug.

What is the current behavior?

  renderer.create(
    <Fragment>
      <Fragment>foo</Fragment>
    </Fragment>
  )
  .toTree()

Invariant Violation: toTree() does not yet know how to handle nodes with tag=10

https://codesandbox.io/s/olky92m01y

What is the expected behavior?

returns a tree.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

16.2.0

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