Skip to content

[test] Remove dead act() logic#14529

Merged
cherniavskii merged 1 commit intomui:masterfrom
oliviertassinari:core-remove-useless-act
Sep 9, 2024
Merged

[test] Remove dead act() logic#14529
cherniavskii merged 1 commit intomui:masterfrom
oliviertassinari:core-remove-useless-act

Conversation

@oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Sep 7, 2024

setProps() seems to call https://github.com/mui/material-ui/blob/dcc17031aa37b251678c39628b15637ec758d6b4/packages-internal/test-utils/src/createRenderer.tsx#L316 which seems to call https://github.com/testing-library/react-hooks-testing-library/blob/1e01273374af4e48a0feb1f2233bf6c76d742167/src/dom/pure.ts#L22 so this looks like dead code.

This was added in #8097.

I have noticed this in #14442 while I was quickly checking the CLA signed workflow, I looked at the PR diff and this seemed odd to me.

@oliviertassinari oliviertassinari changed the title [test] Remove dead act( logic [test] Remove dead act() logic Sep 7, 2024
@oliviertassinari oliviertassinari added test scope: data grid Changes related to the data grid. labels Sep 7, 2024
@mui-bot
Copy link

mui-bot commented Sep 7, 2024

Deploy preview: https://deploy-preview-14529--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against 43a569a

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

Labels

scope: data grid Changes related to the data grid. test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants