-
-
Notifications
You must be signed in to change notification settings - Fork 66
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] Add missing async #706
Conversation
Netlify deploy preview |
125a225
to
6b1e442
Compare
6b1e442
to
3b44055
Compare
@@ -153,7 +153,7 @@ describe('<Tabs.Root />', () => { | |||
tabElements[index].id, | |||
); | |||
|
|||
await act(async () => { | |||
await act(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fun fact: having an async
here breaks 200+ other tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh strange, there is some black magic 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd love to switch to Vitest as soon as possible. At least test isolation works well there.
Thoseasync
functions are noise, see the source of Act if you want to be sure: https://github.com/facebook/react/blob/main/packages/react/src/ReactAct.js.Edit: Ok, no, this look required mui/mui-public#174