TestAnswer
A queued answer consumed by createTestPrompter.
The test prompter returns these values exactly as provided; it does not coerce or validate them. The normal resolution pipeline performs any later type coercion, so tests can supply values in the same shapes real prompts would yield:
stringforinputandselectbooleanforconfirmstring[]formultiselectPROMPT_CANCELto simulate user cancellation
Because the type is intentionally unknown, tests may also inject malformed answers to exercise downstream validation and error reporting.
- Import:
@kjanat/dreamcli/testkit - Export kind: type
- Declared in:
src/core/prompt/index.ts - Source link:
packages/dreamcli/src/core/prompt/index.ts:163
Signatures
ts
type TestAnswer = unknown;