codegraph
codegraph copied to clipboard
fix: include anonymous callback and file-read dependents
Summary
- walk anonymous function and arrow callback bodies without creating synthetic anonymous symbols, preserving call edges from wrappers such as
Deno.serve(async () => handler())and test callbacks likeit(..., async () => run()) - treat static project file paths passed to file-read APIs such as
readFileSync()andDeno.readTextFileSync()as file dependencies soaffectedcan find source-contract tests - make MCP subprocess tests wait for child process exit and retry temp directory removal on Windows to avoid
EBUSYcleanup failures
Validation
npx vitest run __tests__/pr19-improvements.test.ts __tests__/graph.test.ts __tests__/mcp-initialize.test.ts __tests__/mcp-roots.test.ts --minWorkers=1 --maxWorkers=1 --testTimeout=30000 --hookTimeout=30000 --no-file-parallelismnpm run buildnpx vitest run --minWorkers=1 --maxWorkers=1 --testTimeout=30000 --hookTimeout=30000 --no-file-parallelism— 35 passed, 2 skipped; 820 tests passed, 9 skipped- smoke-tested against a real TS/Deno project:
callers runCrawl,callers confirmPayment, andaffected supabase/functions/_shared/payment.tsnow return the expected caller/test files