MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / spyCompute

Function spyCompute

__tests__/dominant-file-cache.test.ts:34–36  ·  view source on GitHub ↗
(cg: CodeGraph)

Source from the content-addressed store, hash-verified

32}
33
34function spyCompute(cg: CodeGraph) {
35 return vi.spyOn(queriesOf(cg) as unknown as { computeDominantFile: () => unknown }, 'computeDominantFile');
36}
37
38describe('dominant file — computed once per index state (#1864)', () => {
39 let dir: string;

Callers 1

Calls 1

queriesOfFunction · 0.70

Tested by

no test coverage detected