This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// While using [this solution](https://github.com/testing-library/react-testing-library/issues/1209#issuecomment-2400054404), | |
// I encountered a timeout issue caused by API calls in my components. Each component was waiting for its | |
// API call to complete before rendering, which led to delays and affected the flow to subsequent components. | |
// To resolve this, I refactored the logic so that the API calls are initiated in parallel. | |
// Then, the function waits for all components to finish rendering. | |
import { render } from "@testing-library/react"; | |
import React, { | |
Children, |