We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I would like to know how can I fake the minTimeout of my r-retried function using sinon.fakeTimers or anything equivalent ? Thanks
The text was updated successfully, but these errors were encountered:
I'd guess sinon.useFakeTimers() should just work for what you want, since p-retry uses retry which reads setTimeout and clearTimeout directly from the global scope.
sinon.useFakeTimers()
p-retry
retry
I had the opposite problem recently, read here to know more
Good luck!
Sorry, something went wrong.
No branches or pull requests
Hi,
I would like to know how can I fake the minTimeout of my r-retried function using sinon.fakeTimers or anything equivalent ?
Thanks
The text was updated successfully, but these errors were encountered: