Skip to content

basalt / create-app/src / scriptedPrompter

Function: scriptedPrompter() ​

> scriptedPrompter(script): Prompter & object

Defined in: create-app/src/prompt.ts:168

A scripted prompter for tests: each call dequeues the next answer of its kind. log captures intro/note/outro lines so a test can assert the summary.

Parameters ​

script ​

confirm? ​

boolean[]

multiselect? ​

unknown[][]

select? ​

unknown[]

text? ​

string[]

Returns ​

Prompter & object

Released under the MIT License.