Skip to content

connectToCdp

Launches (or attaches to) a CDP-enabled Obsidian instance, opens a vault, and bootstraps the runtime helper namespace, returning a disposable connection.

Import:

import { connectToCdp } from 'obsidian-integration-testing';

Signature:

function connectToCdp(options: ConnectToCdpOptions | undefined): Promise<CdpConnection>

Parameters:

ParameterTypeDescription
optionsConnectToCdpOptions | undefinedConnection options.

Returns: Promise<CdpConnection> — A Promise that resolves to the live CdpConnection.


Links to this page: