Skip to content

DialogTestHarness

A test fixture: a DialogContext answered by its own ScriptedDialogDriver.

Import:

import type { DialogTestHarness } from '@mnaoumov/obsidian-lib/modals/scripted-dialog-driver';

Signature:

export interface DialogTestHarness

Properties

PropertyTypeDescription
assertDone() => voidThrows when a scripted step was never used.
dialogContextDialogContextThe context the code under test shows its dialogs through.
driverScriptedDialogDriverThe driver holding the script and the transcript.

Links to this page: