Tests that cover a file, and files a test covers
snapshot_testsIdentifies which tests import a given source path; without a path, lists every test file and how many files it exercises. Read-only.
Instructions
The test side of the graph. Given a path, the tests that import it (plus the ones named after it); with no path, every test file and how many files it exercises. Read-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "snapshot_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Source or test path relative to the repository root. | |
| root | No | Repository root. Defaults to the directory this server was started in. | |
| outDir | No | Snapshot directory, relative to the root, and it must resolve inside the served repository. Defaults to the project configuration's outDir. | |
| maxFiles | No | Cap on listed tests (default 50). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tests | No | ||
| covered | No |