TestAnswer
A queued answer consumed by createTestPrompter.
The test prompter leaves malformed non-string values intact for resolver error tests. Text answers use the same whitespace, empty-answer, default, and validation policy as the terminal prompter. Passwords retry invalid answers; ordinary input retains its cancellation fallback (see createTestPrompter). 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/test-prompter.ts - Source link:
src/core/prompt/test-prompter.ts:54
Signatures
ts
type TestAnswer = unknown;