def test_wikilink_extraction(tmp_path: Path):
    """
    Test that wikilinks (including alias links) are extracted and stored in metadata.
    """
    content = "Refer to [[NoteOne]] and [[NoteTwo|Alias]] for more details."
    create_markdown_file(tmp_path, "wikilinks.md", content)

    reader = ObsidianReader(input_dir=str(tmp_path))
    docs = reader.load_data()
    assert len(docs) == 1
    doc = docs[0]
    wikilinks: List[str] = doc.metadata.get("wikilinks", [])
    # Order does not matter; both targets should be present.
    assert set(wikilinks) == {"NoteOne", "NoteTwo"}

    Test that wikilinks (including alias links) are extracted and stored in metadata.
    
llama-index-integrations/readers/llama-index-readers-obsidian/tests/test_readers_obsidian.py