Skip to content

[code-infra] Further remove clock=fake and add async act for datagrid #17563

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

Merged
merged 5 commits into from
Apr 27, 2025

Conversation

JCQuintas
Copy link
Member

@JCQuintas JCQuintas commented Apr 26, 2025

Same as with previous PRs, goal is to trim down changes in the main PR, though there were adjustments I had to make for mocha/karma 🫠

Most notable changes are commented

@mui-bot
Copy link

mui-bot commented Apr 26, 2025

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

Generated by 🚫 dangerJS against 7676943

const cell = getCell(0, 0);
fireUserEvent.mousePress(cell);
}).not.to.throw();
it('should not crash when the row is removed during the click', async () => {
Copy link
Member Author

Choose a reason for hiding this comment

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

expect doesn't support async, so I just removed the expects, if something throws inside the test it will fail.

@JCQuintas JCQuintas changed the title Tests [code-infra] Further remove clock=fake and add async act for datagrid Apr 27, 2025
@JCQuintas JCQuintas requested review from a team April 27, 2025 08:40
@JCQuintas JCQuintas marked this pull request as ready for review April 27, 2025 08:40
@JCQuintas JCQuintas merged commit cb6ae55 into mui:master Apr 27, 2025
21 checks passed
@JCQuintas JCQuintas deleted the datagrid-changes-vitest branch April 27, 2025 21:32
@oliviertassinari oliviertassinari added type: enhancement This is not a bug, nor a new feature and removed maintenance labels Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test type: enhancement This is not a bug, nor a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants