Skip to content

LinesEllipsis inside a test was not wrapped in act #137

@ghbishal

Description

@ghbishal

while writing test using react testing library we are getting the below error

Warning: An update to LinesEllipsis 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 */

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions