ember-cli-blueprint-test-helpers
ember-cli-blueprint-test-helpers copied to clipboard
Test with prompts
I checked open and closed issues and I havent found anything about this. How do I pass a prompt in the middle of a running test?
Unfortunately there is currently no solution for this built into the project. If you have an idea on how to implement it please let us know.
Damn thats a bummer... Ill try to dig around and see if I can find a workaround.
@offirgolan in the Ember CLI codebase we replace ui
with a MockUI
instance, that let's us mock the prompt()
method. maybe that helps in some way.
@offirgolan have a look at https://github.com/ember-cli/ember-cli-eslint/pull/114 for an example on how to mock the inquirer prompt. it's not pretty yet, but it's a start...
@Turbo87 thats def. a great start! Thanks for updating me on this 😸. Feel free to close the issue!
@Turbo87 Maybe use https://github.com/ceasbz/mockirer for mock inquirer prompt 😸
Anyone know of anything that solves this issue? 😂