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

npm test polutes log with many errors #221

Closed
blcham opened this issue Jul 12, 2023 · 2 comments · Fixed by #229
Closed

npm test polutes log with many errors #221

blcham opened this issue Jul 12, 2023 · 2 comments · Fixed by #229
Assignees

Comments

@blcham
Copy link
Collaborator

blcham commented Jul 12, 2023

See example log here:
https://github.com/kbss-cvut/s-forms/actions/runs/5534301619/jobs/10099066069?pr=220

Example errors:
image

@VojtechLunak
Copy link
Collaborator

@blcham Might be duplicate of #176

@LaChope
Copy link
Collaborator

LaChope commented Sep 25, 2023

To resolve this logs:

image

From react documentation, a component must be prepared for assertion using act(). It is usually already integrated in React-testing librabry, but in case of asynchronous updates, it must be wrapped in waitFor(). See #229.

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

Successfully merging a pull request may close this issue.

3 participants