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

Исправить предупреждение "test was not wrapped in act(...)" #7

Closed
aneurysmjs opened this issue Jun 12, 2019 · 3 comments

Comments

@aneurysmjs
Copy link
Owner

есть следующий " Warning: An update to Icon inside a test was not wrapped in act(...)."

тогда улучшить его тест с помощью "act"

@aneurysmjs aneurysmjs self-assigned this Jun 12, 2019
@aneurysmjs aneurysmjs changed the title Исправсить предупреждение <Icon /> Исправить предупреждение <Icon /> Jun 12, 2019
@aneurysmjs
Copy link
Owner Author

там есть крутые примеры для тестирования hooks используя "act"
https://github.com/threepointone/react-act-examples

@aneurysmjs
Copy link
Owner Author

так же здесь

@aneurysmjs aneurysmjs changed the title Исправить предупреждение <Icon /> Исправить предупреждение "test was not wrapped in act(...)" Aug 6, 2019
aneurysmjs added a commit that referenced this issue Aug 6, 2019
aneurysmjs added a commit that referenced this issue Aug 6, 2019
aneurysmjs added a commit that referenced this issue Aug 11, 2019
run timers to test process of loading and rendering the corresponding elements

fix #7
aneurysmjs added a commit that referenced this issue Aug 11, 2019
test against div's text content

fix #7
@aneurysmjs
Copy link
Owner Author

🎉 This issue has been resolved in version 1.22.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant