markup that is not valid JS
""",
)
result = extract_vue(comp)
assert _make_id(str(tmp_path / "dep.ts")) in _targets(result, relation="imports_from")
def test_vue_joins_cross_file_symbol_resolution(tmp_path):
"""A ``.vue`` calling an imported function wires to the real symbol across files.
The SFC's calls should resolve like any ``.ts`` file's would.
"""
helper = _write(tmp_path / "helper.ts", "export function helper() {}\n")
comp = _write(
tmp_path / "Caller.vue",
"""