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

LinesEllipsis inside a test was not wrapped in act #137

Open
ghbishal opened this issue Jul 9, 2024 · 0 comments
Open

LinesEllipsis inside a test was not wrapped in act #137

ghbishal opened this issue Jul 9, 2024 · 0 comments

Comments

@ghbishal
Copy link

ghbishal commented Jul 9, 2024

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 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant