(tmp_path)
| 46 | |
| 47 | |
| 48 | def test_generator_expression_is_node(tmp_path): |
| 49 | f = _write(tmp_path / "src" / "h.ts", |
| 50 | "export const stream = function* () { yield 'a'; };\n") |
| 51 | r = extract([f], cache_root=tmp_path) |
| 52 | assert _has_node(r, "src/h.ts", "stream") |
| 53 | |
| 54 | |
| 55 | def test_generator_body_calls_are_attributed(tmp_path): |