Skip to content

registerIntegrationTestLibResolver

Registers the renderer-side resolver that merges the whole library into the lib argument of every evalInObsidian callback, reading it from the global the harness plugin publishes.

Call once per test worker — the published obsidian-dev-utils/integration-test-setup endpoint does it for you when listed in setupFiles. Registration is idempotent (the harness dedupes resolvers by source text), so calling it more than once is safe.

Import:

import { registerIntegrationTestLibResolver } from 'obsidian-dev-utils/script-utils/test-runners/integration-test-plugin';

Signature:

function registerIntegrationTestLibResolver(): void

Returns: void