MCPcopy Create free account
hub / github.com/code-pushup/cli / performance-observer.unit.test.ts

File performance-observer.unit.test.ts

packages/utils/src/lib/performance-observer.unit.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { type PerformanceEntry, performance } from 'node:perf_hooks';
2import type { MockedFunction } from 'vitest';
3import { MockPerformanceObserver } from '@code-pushup/test-utils';
4import { MockAppendableSink } from '../../mocks/sink.mock';

Callers

nothing calls this directly

Calls 11

validateFlushThresholdFunction · 0.85
resolveFunction · 0.85
subscribeMethod · 0.80
lastInstanceMethod · 0.80
measureMethod · 0.80
isSubscribedMethod · 0.80
unsubscribeMethod · 0.80
flushMethod · 0.45
closeMethod · 0.45
getStatsMethod · 0.45

Tested by

no test coverage detected