Skip to content

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 Changes related 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 Changes related to the core-infra product. test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants