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

Function fresh

__tests__/react-router.test.ts:1722–1730  ·  view source on GitHub ↗
(index: boolean)

Source from the content-addressed store, hash-verified

1720 });
1721 /** What a fresh index of the same files says. */
1722 const fresh = async (index: boolean): Promise<{ bindings: string[]; navigations: string[] }> => {
1723 const project = await indexProject(files(index));
1724 try {
1725 return { bindings: routeBindings(project.cg), navigations: navigations(project.cg) };
1726 } finally {
1727 project.cg.close();
1728 fs.rmSync(project.root, { recursive: true, force: true });
1729 }
1730 };
1731 beforeAll(async () => {
1732 ({ root, cg } = await indexProject(files(false)));
1733 });

Callers 1

Calls 5

indexProjectFunction · 0.70
filesFunction · 0.70
routeBindingsFunction · 0.70
navigationsFunction · 0.70
closeMethod · 0.65

Tested by

no test coverage detected