Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚙️ Warning when running tests #1082

Open
alexasselin008 opened this issue Dec 14, 2022 · 0 comments
Open

⚙️ Warning when running tests #1082

alexasselin008 opened this issue Dec 14, 2022 · 0 comments
Labels

Comments

@alexasselin008
Copy link
Member

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

@alexasselin008 alexasselin008 changed the title 🐛 Warning when running tests ⚙️ Warning when running tests Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant