Disabling all tooltip delay
in unit tests?
#8088
-
Right now, all of my tooltips from RAC have a default delay of 400ms. Works well in-app, but slows down tests using React Testing Library, which have to Is there a way to automatically disable all tooltip delays when testing? |
Beta Was this translation helpful? Give feedback.
Answered by
snowystinger
Apr 12, 2025
Replies: 1 comment 3 replies
-
You can use fake timers and instantly advance the time to open or close. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
evadecker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use fake timers and instantly advance the time to open or close.
Here's how to do it for jest
https://jestjs.io/docs/timer-mocks