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:
| Parameter | Type | Description |
|---|---|---|
options | ConnectToCdpOptions | undefined | Connection options. |
Returns: Promise<CdpConnection> — A Promise that resolves to the live CdpConnection.
Links to this page: