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

Function refsOf

__tests__/extraction.test.ts:7818–7818  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

7816 expect(cg.getFileDependents('theme/sections/main-product.liquid')).toEqual(['theme/templates/product.json']);
7817 // Extracting without storing tells them apart the same way.
7818 const refsOf = (file: string) => cg.extractFromSource(file, jsonTemplate('main-product')).unresolvedReferences.map((r) => r.referenceName);
7819 expect(refsOf('theme/templates/product.json')).toEqual(['sections/main-product.liquid']);
7820 expect(refsOf('tools/templates/product.json')).toEqual([]);
7821 });

Callers 1

extraction.test.tsFile · 0.70

Calls 3

jsonTemplateFunction · 0.85
mapMethod · 0.80
extractFromSourceMethod · 0.80

Tested by

no test coverage detected