Skip to content

getIconIds

Lists the available icon ids. Obsidian lists its Lucide set, then the icons added with addIcon, then its own glyphs; the mock does not bundle the built-in icons (see getIcon), so it lists only the icons added with addIcon and not since removed, in the order they were added.

Import:

import { getIconIds } from 'obsidian-test-mocks/obsidian';

Signature:

function getIconIds(): string[]

Returns: string[] — The registered icon ids.