Skip to content

[Feature]: Let affected exclude test files in CLI and MCP queries #5609

Backlog

Description

@rvitaliy

What problem does this solve?

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

  1. github-actions commented on Nov 28, 2026

    @github-actions

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions