(tmp_path)
| 284 | |
| 285 | |
| 286 | def test_js_block_comment_rationale_extracted(tmp_path): |
| 287 | from graphify.extract import extract_js |
| 288 | path = _write_ts(tmp_path, ''' |
| 289 | /** |
| 290 | * WHY: retries are capped because the upstream rate-limits at 10 rps. |
| 291 | */ |
| 292 | export function fetchData(): void {} |
| 293 | ''') |
| 294 | result = extract_js(path) |
| 295 | rationale = [n for n in result["nodes"] if n.get("file_type") == "rationale"] |
| 296 | assert any("rate-limits" in n["label"] for n in rationale) |
| 297 | |
| 298 | |
| 299 | def test_js_adr_reference_extracted(tmp_path): |
nothing calls this directly
no test coverage detected