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

Function navs

__tests__/nextjs.test.ts:218–218  ·  view source on GitHub ↗
(from: Node)

Source from the content-addressed store, hash-verified

216 return n;
217 };
218 const navs = (from: Node) => cg.getOutgoingEdges(from.id).filter((e) => e.kind === 'navigates');
219
220 it('names every page and endpoint, and binds a page to its component and an endpoint to its function', () => {
221 expect(cg.getNodesByKind('route').map((r) => r.name).sort()).toEqual(['/', '/login', '/users', '/users/:id', 'GET /api/users', 'POST /api/users']);

Callers 1

nextjs.test.tsFile · 0.70

Calls 1

getOutgoingEdgesMethod · 0.45

Tested by

no test coverage detected