-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[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
Conversation
Deploy preview: https://deploy-preview-17577--material-ui-x.netlify.app/ |
// 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'] }); |
There was a problem hiding this comment.
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? 🤔
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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. 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted
Same as with previous PRs, goal is to trim down changes in the main PR