gsoft-inc/sg-orbit

⚙️ Warning when running tests

Opened this issue · 0 comments

Describe the bug

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 */

Steps to reproduce

run yarn jest

notice the warning appearing in the console

Expected results

no warning is displayed