useEffect usually use Promises for update state.
This updates cause long warning in jest: Warning: An update to null inside a test was not wrapped in act(...).
How correctly write Jest Test for such case?
live example, Reproducible Example:
https://codesandbox.io/s/jest-test-for-useeffect-with-promises-spieq?file=/index.test.js