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

[code-infra] Allow overriding all options of useFakeTimers function #43729

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

LukasTy
Copy link
Member

@LukasTy LukasTy commented Sep 12, 2024

Improve the extensibility of the useFakeTimers function by allowing override of all options.
This might be most useful in providing a toFake (doc) option to limit what is mocked.

@LukasTy LukasTy added test scope: code-infra Specific to the core-infra product labels Sep 12, 2024
@LukasTy LukasTy self-assigned this Sep 12, 2024
@mui-bot
Copy link

mui-bot commented Sep 12, 2024

Netlify deploy preview

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

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 9caf72e

@LukasTy LukasTy requested a review from a team September 12, 2024 10:00
Copy link
Member

@Janpot Janpot left a comment

Choose a reason for hiding this comment

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

Can't wait for automatic resource managent to get wide spread adoption so that we can just do

using clock = useFakeTimers({ ... })

only in the tests that need it instead of making a kitchen sink createRender with all these utilities that are unnecessary on many of the tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: code-infra Specific to the core-infra product test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants