blob: 3bdf163c22b52effd395b7c97abf4bf205e39945 (
plain)
1
2
3
4
5
6
7
8
|
// FIXME(vslobodin): Remove this stub once we have migrated to Jest 28.
// NOTE: Do not try to optimize these stubs as Jest 27 overwrites
// the "global.performance" object in every suite where fake timers are enabled.
export const stubPerformanceWebAPI = () => {
global.performance.getEntriesByName = () => [];
global.performance.mark = () => {};
global.performance.measure = () => {};
};
|