get_rename_aware_diff
Identify affected tests in TypeScript projects while correctly handling renamed and moved files, using rename detection and ignoring whitespace-only changes.
Instructions
Like get_affected_tests_by_branch, but correctly handles renamed and moved files. Uses --find-renames to detect file moves and --ignore-all-space to skip whitespace-only changes. Use instead of get_affected_tests_by_branch when the branch contains refactors or file moves.
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_rename_aware_diff"
}
}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) | |
| similarity_threshold | No | Minimum similarity % to consider a file move a rename (default: 90) |