Skip to content

Conversation

@brijeshb42
Copy link
Contributor

and fixes accordingly

Part of - mui/mui-public#173

@brijeshb42 brijeshb42 requested a review from a team October 14, 2025 07:45
@brijeshb42 brijeshb42 added the scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). label Oct 14, 2025
@mui-bot
Copy link

mui-bot commented Oct 14, 2025

Netlify deploy preview

https://deploy-preview-47074--material-ui.netlify.app/

Bundle size report

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against 006e9db

// Test start
{
files: [`**/*${EXTENSION_TEST_FILE}`, 'packages/mui-codemod/testUtils/**/*'],
files: [`**/*${EXTENSION_TEST_FILE}`, 'packages/mui-codemod/testUtils/index.js'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we can maintain the broad application, in case someone decides to refactor in multiple files?

Suggested change
files: [`**/*${EXTENSION_TEST_FILE}`, 'packages/mui-codemod/testUtils/index.js'],
files: [`**/*${EXTENSION_TEST_FILE}`, `packages/mui-codemod/testUtils/**/*${EXTENSION_TS}`],

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this file from here altogether. Added the exception in the file itself.

it('when undefined onChange and controlled should not call the onChange', () => {
const handleChange = spy();
const { setProps, getByText } = render(
const { setProps } = render(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do you feel about discouraging destructuring here and instead

Suggested change
const { setProps } = render(
const view = render(

Last time I worked on this code it was harder than it should be because this destructuring is hard to search on.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What kind of search are you referring to?
Also, not sure how we'd enforce not to destructure.

Copy link
Member

@Janpot Janpot Oct 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What kind of search are you referring to?

It's convenient to search for things like "view.setProps(".

Also, not sure how we'd enforce not to destructure.

I thought there was a eslint rule in rtl plugin, but seems like i was wrong. Let's not worry about it.

Copy link
Member

@Janpot Janpot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, a few remarks, but nothing blocking

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Oct 14, 2025
@brijeshb42 brijeshb42 enabled auto-merge (squash) October 15, 2025 07:33
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Oct 15, 2025
@brijeshb42 brijeshb42 merged commit a9dab8b into mui:master Oct 15, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants