Skip to content

[code-infra] Latest vitest picker changes #17577

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 4 commits into from
Apr 28, 2025

Conversation

JCQuintas
Copy link
Member

Same as with previous PRs, goal is to trim down changes in the main PR

@JCQuintas JCQuintas requested a review from a team April 27, 2025 09:15
@JCQuintas JCQuintas self-assigned this Apr 27, 2025
@mui-bot
Copy link

mui-bot commented Apr 27, 2025

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

Generated by 🚫 dangerJS against ed18306

@JCQuintas JCQuintas marked this pull request as ready for review April 27, 2025 18:51
// TODO: temporary for vitest. Can move to `vi.useFakeTimers`
let timer: SinonFakeTimers | null = null;
beforeEach(() => {
timer = useFakeTimers({ now: new Date(2018, 0, 1), toFake: ['Date'] });
Copy link
Member

Choose a reason for hiding this comment

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

Haven't we already tried removing this time mocking and later encountered edge-cases at certain times? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

I can't remember 🤔

I can also keep it in for this describe block if you think it is best

Copy link
Member

Choose a reason for hiding this comment

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

I prefer keeping it here. 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

reverted

@JCQuintas JCQuintas enabled auto-merge (squash) April 28, 2025 09:44
@JCQuintas JCQuintas merged commit 5eb8e45 into mui:master Apr 28, 2025
21 checks passed
@JCQuintas JCQuintas deleted the datepickers-kept branch April 28, 2025 10:17
@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