InquirerJS Not Listing Options
I've been working on a project that uses Inquirer recently and have been trying to get the list prompt type to work. I've tried multiple things but even the simplest version seems to fail.
What have I missed?
The issue is that when I run this using the node command, it says:
? Pick one for testing!
And doesn't show any options. It still lets me type in there though, like an input.
import inquirer from 'inquirer';
inquirer.prompt([{
name: 'Testing',
type: "list",
message: "Pick one for testing!",
choices: ["test1", "test2", "test3"]
}]);