ast-grep sg test adds --follow
Introduced 2026-05-25 · score 0.93
HOW TO USE IT
When testing ast-grep rules and you need to follow target paths or files, pass `--follow` to `sg test`.
WHY THIS HELPS
Test code with ast-grep while following the target paths or files.
REQUIREMENTS AND LIMITATIONS
- Version: 0.43.0
- --follow: The 0.43.0 release note adds this argument to `sg test`; official CLI reference documentation does not document it for `test`.
FIRST-PARTY EVIDENCE
Check the installed version and the source before using it. Entry JSON