You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have added a new prompt type (autocomplete from https://www.npmjs.com/package/inquirer-autocomplete-prompt) and am noticing that the TestAdapter created by yeoman-test is not inserting the DummyPrompt for this new prompt type into the prompt module. This is causing an issues where I am unable to pass in mocked prompt answers for prompts of this new type. I am not sure if this is a bug. If it is not a bug, can I make a feature request for the ability to pass in a custom prompt type to the helpers so that it will properly create the DummyPrompt?
When I log the adapter in my current setup, here is what it looks like (note TestAdapter.promptModule.prompts.autocomplete being different from the other values in prompts:
I have added a new prompt type (
autocomplete
from https://www.npmjs.com/package/inquirer-autocomplete-prompt) and am noticing that the TestAdapter created byyeoman-test
is not inserting theDummyPrompt
for this new prompt type into the prompt module. This is causing an issues where I am unable to pass in mocked prompt answers for prompts of this new type. I am not sure if this is a bug. If it is not a bug, can I make a feature request for the ability to pass in a custom prompt type to thehelpers
so that it will properly create theDummyPrompt
?When I log the adapter in my current setup, here is what it looks like (note
TestAdapter.promptModule.prompts.autocomplete
being different from the other values inprompts
:This is the line where I register the new prompt type in the constructor of my generator:
The text was updated successfully, but these errors were encountered: