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

Function routes

__tests__/sync-framework-detection.test.ts:49–49  ·  view source on GitHub ↗
(rel: string)

Source from the content-addressed store, hash-verified

47 fs.writeFileSync(path.join(root, rel), body);
48 };
49 const routes = (rel: string) => cg!.getNodesInFile(rel).filter((n) => n.kind === 'route').map((n) => n.name);
50
51 beforeEach(() => {
52 root = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'cg-sync-frameworks-')));

Calls 2

mapMethod · 0.80
getNodesInFileMethod · 0.65

Tested by

no test coverage detected