Skip to content

LibResolver

A self-contained function, evaluated inside the Obsidian renderer, that returns an object whose own enumerable properties are merged (via Object.assign) into the injected lib bag.

It is serialized via toString() and must not close over any module scope (imports are unavailable in the serialized renderer closure); read a renderer global instead (e.g. a value a fixture plugin published on window). Returning null/undefined is tolerated at runtime (Object.assign ignores it).

Import:

import type { LibResolver } from 'obsidian-integration-testing';

Signature:

export type LibResolver

Signature:

type LibResolver = (this: void) => object

Type: (this: void) => object


Links to this page: