Multiple tests don't break, but display the following erro rmessage:
Warning: An update to Popup inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
Describe the bug
Multiple tests don't break, but display the following erro rmessage:
Steps to reproduce
run
yarn jest
notice the warning appearing in the console
Expected results
no warning is displayed