Skip to content

Shallow rendering uses .type and throws deprecations #4730

@aaronjensen

Description

@aaronjensen

When calling renderer.render() I get:

Warning: Foo.type is deprecated. Use Foo directly to access the class

It seems to be here, and a few other places:

https://github.com/facebook/react/blob/master/src/test/ReactTestUtils.js#L418

I wonder if #4009 broke this entirely...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions