I am using two useEffect for two different redux variables. All is working fine when I run the application in browser but it is not passing jest test because the state is not up