Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

findAllWithType is not functioning correctly #3

@Will-Sommers

Description

@Will-Sommers

Firstly, are you accepting PRs on this project?

Second, consider the following code:

var Test = React.createClass({
  render: function() {
    return <div><TestTwo /></div>
  } 
});

var TestTwo = React.createClass({
  render: function() {
    return <div> 'hi'</div>
  }
})
renderer = new ShallowRenderer.Renderer;
component = renderer.render(Test, {}, {});
ShallowRenderer.findAllWithType(component, 'TestTwo')

Should this return an array with one element representing the TestTwo component? It is currently returning an empty array. I'm trying to verify that I am using this correctly.

It looks as if .type passed to findAll is not returning the correct value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions