Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test with prompts #65

Open
offirgolan opened this issue Jun 24, 2016 · 7 comments
Open

Test with prompts #65

offirgolan opened this issue Jun 24, 2016 · 7 comments

Comments

@offirgolan
Copy link

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?

screen shot 2016-06-23 at 6 16 11 pm

@Turbo87
Copy link
Member

Turbo87 commented Jun 24, 2016

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.

@offirgolan
Copy link
Author

Damn thats a bummer... Ill try to dig around and see if I can find a workaround.

@Turbo87
Copy link
Member

Turbo87 commented Jun 24, 2016

@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.

@Turbo87
Copy link
Member

Turbo87 commented Aug 26, 2016

@offirgolan have a look at ember-cli/ember-cli-eslint#114 for an example on how to mock the inquirer prompt. it's not pretty yet, but it's a start...

@offirgolan
Copy link
Author

@Turbo87 thats def. a great start! Thanks for updating me on this 😸. Feel free to close the issue!

@cauealvesbraz
Copy link

@Turbo87 Maybe use https://github.com/ceasbz/mockirer for mock inquirer prompt 😸

@mansona
Copy link
Member

mansona commented Jul 28, 2020

Anyone know of anything that solves this issue? 😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants