Jest wait for state change. However it appears to be working correctly if it is called directly in a browser Join a game o...