concept act in category javascript
appears as: ct

This is an excerpt from Manning's book Testing JavaScript Applications.
Even though you are making HTTP requests instead of calling functions, the general formula for your tests should be the same: arrange, act, assert.
Differently from what you’ve done in your application, in your tests you must wrap each of your interactions with a component into a React testing utility called
act, which part of thereact-dompackage. Theactfunction ensures that the updates associated to your interactions have been processed and applied to the DOM, which, in this case, is implemented by JSDOM.