Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ambar opened this issue Jan 27, 2018 · 3 comments · Fixed by #12154
Closed

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

ambar opened this issue Jan 27, 2018 · 3 comments · Fixed by #12154

Comments

@ambar
Copy link

ambar commented Jan 27, 2018

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

@gaearon
Copy link
Collaborator

gaearon commented Jan 27, 2018

This does look like a bug (or rather missing functionality).
Would you like to send a PR?

@maciej-ka
Copy link
Contributor

I would give it a try.

@aweary
Copy link
Contributor

aweary commented Jan 27, 2018

Thanks @maciej-ka!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants