Skip to content

loadPrism

Loads the Prism syntax highlighter and resolves to the global Prism object. The mock loads nothing.

Import:

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

Signature:

function loadPrism(): Promise<unknown>

Returns: Promise<unknown> — A promise resolving to an empty object standing in for Prism.