DialogDriver
An instance-scoped driver that can observe dialog requests and answer them.
ScriptedDialogDriver (scripted-dialog-driver.ts) is the one tests use.
Import:
import type { DialogDriver } from '@mnaoumov/obsidian-lib/modals/dialog-context';Signature:
export interface DialogDriverProperties
| Property | Type | Description |
|---|---|---|
| handle | (request: DialogRequest) => Promisable<DialogDriverResponse> | Handles one dialog request, or passes it through to the real modal. |
Links to this page: