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

Testing popper act issue #21

Open
PorterK opened this issue Jun 7, 2019 · 0 comments
Open

Testing popper act issue #21

PorterK opened this issue Jun 7, 2019 · 0 comments
Assignees
Labels
bug Something isn't working low priority Non-pressing items
Milestone

Comments

@PorterK
Copy link
Contributor

PorterK commented Jun 7, 2019

  console.error node_modules/react-dom/cjs/react-dom.development.js:506
    Warning: An update to ForwardRef(Popper) 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 */

    This ensures that you're testing the behavior the user would see in the browser. Learn more at https://fb.me/react-wrap-tests-with-act
        in ForwardRef(Popper) (created by Menu)
        in Menu (created by UserMenu)
        in div (created by ForwardRef(Grid))
        in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
        in WithStyles(ForwardRef(Grid)) (created by UserMenu)
        in div (created by ForwardRef(Grid))
        in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
        in WithStyles(ForwardRef(Grid)) (created by UserMenu)
        in UserMenu (created by WrapperComponent)
        in WrapperComponent
@PorterK PorterK added bug Something isn't working low priority Non-pressing items labels Jun 7, 2019
@PorterK PorterK added this to the Frontend MVP milestone Jun 7, 2019
@PorterK PorterK self-assigned this Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working low priority Non-pressing items
Projects
None yet
Development

No branches or pull requests

1 participant