-
Notifications
You must be signed in to change notification settings - Fork 1
-
Notifications
You must be signed in to change notification settings - Fork 1
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
act
warning when rendering
#2
Comments
Wrapping in |
But indeed it may be required for |
Wouldn't it be better to use |
This is explained in the docs:
All actions should happen as they would in the browser because we don't interfere with |
I'm not 100% convinced this is a good idea, without
Sure, but tests run faster than a real user would interact with a page, can we be sure that we won't miss anything without |
Yes, we can. Vitest uses CDP and webdriver to communicate with the browser, it doesn't fake events. This is how all e2e tools work, there is no need to rely on framework specific behaviours. |
This is enough for me to get an act warning from React:
Wrapping the
render
call withact
resolves the warning, of course:I know the README mentions that this library does not use
act
, but maybe it should?The text was updated successfully, but these errors were encountered: