You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sinon (or lolex) hijacks globals like process.hrtime to allow faking time.
Using performance-now with Sinon doesn't work since performance-now keeps a reference to process.hrtime. When Sinon patches the global hrtime, performance-now still keeps a reference to the original hrtime
The text was updated successfully, but these errors were encountered:
We have a use-case where we are using Sinons-fake timers in our unit tests. http://sinonjs.org/releases/v4.0.1/fake-timers/
Sinon (or lolex) hijacks globals like process.hrtime to allow faking time.
Using performance-now with Sinon doesn't work since performance-now keeps a reference to
process.hrtime
. When Sinon patches the globalhrtime
, performance-now still keeps a reference to the originalhrtime
The text was updated successfully, but these errors were encountered: