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

React.Suspense only renders the first child in Enzyme. #34

Closed
@cnzh2992

Description

@cnzh2992

Hi, I tried to test on a component with multiple children wrapped in <Suspense />, like:

<Suspense fallback={...}>
  <div />
  <div />
  <div />
</Suspense>

Only the first div rendered in test framework.

Here's the reproduction link. It looks good on browser and React Testing Framework but failed on Enzyme. Is it a bug of React 17 adapter?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions