You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Let affected exclude test files in CLI and MCP queries #5609
affected mixes application callers with test files even when the question is about production code. In a TypeScript monorepo, graphify affected createHousekeepingApplication --depth 2 returned 23 hits, 18 under test paths. query already has --no-tests; passing it to affected currently gives the same output as the unfiltered command.
Proposed behavior
Support graphify affected TARGET --no-tests and an optional no_tests boolean in the MCP affected tool. Use the same test-path conventions as query --no-tests. Test nodes are outside the selected graph, including when they could act as an intermediate dependency. The default still includes tests, so the same graph serves both application impact and test discovery.
Alternatives
Keep scanning the output for application paths or maintain a second graph that excludes tests. A query-time filter shares the original graph and the existing definition of a test path.
Environment
Verified with Graphify 0.9.123 on v8 at 5d962d2d, macOS arm64, Python 3.14.10.
Activity
github-actions commentedon Nov 28, 2026
Thanks for opening this issue, @rvitaliy. A maintainer will take a look soon.
If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.
To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.