# `once query affected-tests`

List test targets likely affected by changed workspace paths.

## Synopsis

```text
once query affected-tests [OPTIONS]
```

## Description

Uses declared target inputs, package ownership, and reverse dependency traversal. An otherwise unowned path belongs to its nearest package. The root manifest, configured graph modules, and paths outside every known package conservatively select every test.

## Options

| Flag | Value | Default | Description |
| --- | --- | --- | --- |
| `--changed-path` | `<PATH>` |  | Changed workspace-relative path. Repeat for multiple paths. |
