Welcome to mirror list, hosted at ThFree Co, Russian Federation.

performance.js « __helpers__ « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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 = () => {};
};