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
{{ message }}
Repository navigation
Use global.performance instead of perf_hooks.performance for Node >16 #93
As of node v16, performance is directly exposed under global.performance - nodejs/node#37970
One benefit of this change is that popular library @sinonjs/fake-timers only overrides the global performance object, and not perf_hooks.performance. So right now, users of this library need to explicitly mock out perf_hooks.performance (or just-performance.performance).
Activity
jhurliman commentedon Jan 24, 2025
Addressed in 3.0.0