get_affected_tests_by_branch
Runs git diff from a base branch to HEAD and returns the affected test files, automating the diff step for TypeScript projects.
Instructions
Runs git diff --name-only <base_branch>...HEAD internally and returns affected test files. Use instead of get_affected_tests when you want the server to handle the git diff automatically.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_root": "<project_root>"
},
"name": "get_affected_tests_by_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_branch | No | Branch to diff against (default: main) | main |
| project_root | Yes | Absolute path to the TypeScript project root (must contain tsconfig.json) |