Skip to content

Conversation

@eps1lon
Copy link
Member

@eps1lon eps1lon commented Jan 29, 2023

I would recommend splitting these out into individual PRs since some changes affect shipped code. I won't have the time to do that though but it should be straig forward since I handled different warnings in different commits.

Notable React canary changes are the introduction of warnings for usage of defaultProps and spreading key (part of reactjs/rfcs#107)

Part of #14761

Comment on lines -522 to -533
this.assert(
expectedMessages.length > 0,
`Expected to call console.${methodName} but didn't provide messages. ` +
`If you don't expect any messages prefer \`expect().not.${matcherName}();\`.`,
`Expected no call to console.${methodName} while also expecting messages.` +
'Expected no call to console.error but provided messages. ' +
"If you want to make sure a certain message isn't logged prefer the positive. " +
'By expecting certain messages you automatically expect that no other messages are logged',
// Not interested in a diff but the typings require the 4th parameter.
undefined,
);

Copy link
Member Author

Choose a reason for hiding this comment

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

Would be annoying to handle code that only warns in specific React versions.

@eps1lon eps1lon added test scope: autocomplete Changes related to the autocomplete. This includes ComboBox. labels Jan 29, 2023
@mui-bot
Copy link

mui-bot commented Jan 29, 2023

Netlify deploy preview

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

Bundle size report

Details of bundle changes

Generated by 🚫 dangerJS against d2ff138

@eps1lon eps1lon marked this pull request as ready for review January 29, 2023 15:19
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Feb 16, 2023
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Apr 16, 2023
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label May 16, 2023
@eps1lon eps1lon closed this Aug 26, 2024
@eps1lon eps1lon deleted the test/react-next branch August 26, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: out-of-date The pull request has merge conflicts and can't be merged. scope: autocomplete Changes related to the autocomplete. This includes ComboBox. test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants