TestPrompterOptions
Options for createTestPrompter.
- Import:
@kjanat/dreamcli/testkit - Export kind: interface
- Declared in:
src/core/prompt/index.ts - Source link:
packages/dreamcli/src/core/prompt/index.ts:170
Signatures
ts
interface TestPrompterOptions {}Members
Properties
onExhausted
Behavior when all answers have been consumed.
'throw'(default) — throws an error, making the test fail loudly if more prompts fire than expected.'cancel'— returns{ answered: false }, simulating the user cancelling all subsequent prompts.
ts
onExhausted?: "throw" | "cancel";