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.
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) |