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

Can't write tests if the plopfile contains conditional prompts #438

Open
HcySunYang opened this issue May 15, 2024 · 1 comment
Open

Can't write tests if the plopfile contains conditional prompts #438

HcySunYang opened this issue May 15, 2024 · 1 comment

Comments

@HcySunYang
Copy link

HcySunYang commented May 15, 2024

I was trying to add tests for my project that is using plop to generate code.

For example:

image

But the tests couldn't be run, because plop will throw an error as it doesn't allow to bypass a conditional prompt, just want to know what is the correct way for writing tests like the scenario I encountered. Thanks

@HcySunYang HcySunYang changed the title Can Can't write tests if the plopfile contains conditional prompts May 15, 2024
@HcySunYang
Copy link
Author

SAO has the testing in mind when its author was designing it, but that project has not been actively updated for a long time, that's why I am looking at the plop, hope the plop taken the testing in mind as well.

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

1 participant