Are fake timers from sinon supported? #1853
Replies: 1 comment
-
|
Sorry for the irrelevant discussion, I was able to find solution with the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have decided to replace
jsdomwith thehappy-domand mostly everything works great! But I am having a specific issue withsinon.useFakeTimers.I have code like this:
const clock = sinon.useFakeTimers(123456789); ... test('some test case', () => { clock.tick(1000); })This tick is being ignored. I assumed I have to use happy-dom specific fake timers, but can't find anything in the documentation. I would be so grateful if you could help me out with that! Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions