Skip to content

Disabling all tooltip delay in unit tests? #8088

Answered by snowystinger
evadecker asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@evadecker
Comment options

@snowystinger
Comment options

@evadecker
Comment options

Answer selected by evadecker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants