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] Remove unnecessary prop type check in test #43211

Merged
merged 4 commits into from
Aug 7, 2024

Conversation

aarongarciah
Copy link
Member

@aarongarciah aarongarciah commented Aug 6, 2024

Removes a prop type check in a test because it's already covered in another test in the same file. We forgot to fix this one in #43155.

Example of the test failure without this fix: https://app.circleci.com/pipelines/github/mui/material-ui/135461/workflows/b151718a-3164-404f-974a-3c13802fca53/jobs/730232?invite=true#step-111-171

Context: React 19 removed prop type checks so we need to skip them in prior versions. More info: https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-proptypes-and-defaultprops

@aarongarciah aarongarciah added test React 19 support About improving React 19 support labels Aug 6, 2024
@aarongarciah aarongarciah requested a review from DiegoAndai August 6, 2024 18:39
@mui-bot
Copy link

mui-bot commented Aug 6, 2024

Netlify deploy preview

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

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against e2ddd85

Co-authored-by: Diego Andai <diego@mui.com>
Signed-off-by: Aarón García Hervás <aaron.garcia.hervas@gmail.com>
@aarongarciah aarongarciah requested a review from DiegoAndai August 6, 2024 20:20
@aarongarciah aarongarciah changed the title [test] Skip prop type check in test [test] Remove unnecessary prop type check in test Aug 7, 2024
@aarongarciah aarongarciah requested a review from DiegoAndai August 7, 2024 14:42
@aarongarciah aarongarciah merged commit 4d2a7e0 into mui:next Aug 7, 2024
19 checks passed
@aarongarciah aarongarciah deleted the skip-prop-type-check branch August 7, 2024 15:21
DiegoAndai added a commit to DiegoAndai/material-ui that referenced this pull request Nov 26, 2024
Signed-off-by: Aarón García Hervás <aaron.garcia.hervas@gmail.com>
Co-authored-by: Diego Andai <diego@mui.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
React 19 support About improving React 19 support test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants