PROMPT_CANCEL
Sentinel value representing a cancelled/aborted prompt in the test prompter's answer queue.
Uses Symbol.for() for cross-bundle safety — the same symbol is returned regardless of which copy of the module is loaded.
- Import:
@kjanat/dreamcli/testkit - Export kind: constant
- Declared in:
src/core/prompt/index.ts - Source link:
packages/dreamcli/src/core/prompt/index.ts:145
Signatures
ts
const PROMPT_CANCEL: unique symbol;Examples
ts
const prompter = createTestPrompter([
'us', // first prompt answered 'us'
PROMPT_CANCEL, // second prompt cancelled
]);Related Examples
- Testing examples using @kjanat/dreamcli/testkit. -
examples/standalone/testing.ts