Skip to content
This repository has been 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 opened this issue Nov 12, 2021 · 1 comment
Closed

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

cnzh2992 opened this issue Nov 12, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@cnzh2992
Copy link

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?

@wojtekmaj
Copy link
Owner

Looks like a bug indeed.

Note to self: Might be related to enzymejs/enzyme#2430 (comment)

@wojtekmaj wojtekmaj added the bug Something isn't working label Nov 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants