A way to avoid calling
act() when testing React hooks.
npm i react-act
import 'react-act' // write your tests without having to call `act()`
This library is a temporary workaround while waiting for
atc() to support async actions. Its implementation forces changes to be synchronous, which is not how React behave on browser.
How? and Why?
Check this article to know why and how did I create this.
Feel free to open issues or submit Pull requests :D