Skip to content

TestPrompterOptions ​

Options for createTestPrompter.

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";

See Also ​

Released under the MIT License.