True when ``path`` steers JS/TS module resolution (#4740). Deliberately over-approximate: a false positive only costs a slower run, a false negative ships a stale graph.
(path: "Path | str")
| 1036 | |
| 1037 | |
| 1038 | def is_resolution_input(path: "Path | str") -> bool: |
| 1039 | """True when ``path`` steers JS/TS module resolution (#4740). |
| 1040 | |
| 1041 | Deliberately over-approximate: a false positive only costs a slower run, a |
| 1042 | false negative ships a stale graph. |
| 1043 | """ |
| 1044 | name = Path(path).name.lower() |
| 1045 | return name in _RESOLUTION_INPUT_NAMES or bool(_TS_CONFIG_NAME_RE.match(name)) |
| 1046 | |
| 1047 | |
| 1048 | # A bare "snapshots" dir is a Jest/Vitest artifact only when it actually holds |
no outgoing calls
no test coverage detected